Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
function run_test() {
|
||||
var clClass = Components.classes["@mozilla.org/toolkit/command-line;1"];
|
||||
var commandLine = clClass.createInstance();
|
||||
do_check_true("length" in commandLine);
|
||||
Assert.ok("length" in commandLine);
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ function run_test() {
|
||||
var commandLine = clClass.createInstance();
|
||||
var urlFile = do_get_file("../unit/data/test_bug410156.desktop");
|
||||
var uri = commandLine.resolveURI(urlFile.path);
|
||||
do_check_eq(uri.spec, "http://www.bug410156.com/");
|
||||
Assert.equal(uri.spec, "http://www.bug410156.com/");
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ function run_test() {
|
||||
var commandLine = clClass.createInstance();
|
||||
var urlFile = do_get_file("../unit/data/test_bug410156.url");
|
||||
var uri = commandLine.resolveURI(urlFile.path);
|
||||
do_check_eq(uri.spec, "http://www.bug410156.com/");
|
||||
Assert.equal(uri.spec, "http://www.bug410156.com/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user