diff --git a/mozilla/js/tests/importList.html b/mozilla/js/tests/importList.html index d7cb7059de0..f9f167fc1fe 100644 --- a/mozilla/js/tests/importList.html +++ b/mozilla/js/tests/importList.html @@ -13,7 +13,7 @@ function doImport() { var lines = - document.forms["foo"].elements["testList"].value.split("\n"); + document.forms["foo"].elements["testList"].value.split(/\r?\n/); var suites = window.opener.suites; var elems = window.opener.document.forms["testCases"].elements; @@ -22,7 +22,7 @@ for (var l in lines) { - if (lines[l].search(/\s*\#/) == -1) + if (lines[l].search(/^\s$|\s*\#/) == -1) { var ary = lines[l].match (/(.*)\/(.*)\/(.*)/); @@ -41,6 +41,8 @@ } window.opener.updateTotals(); + + window.close(); } @@ -51,7 +53,7 @@

+ onclick="return onRadioClick('clear_all');">  Clear all selections berofe import.
diff --git a/mozilla/js/tests/mklistpage.pl b/mozilla/js/tests/mklistpage.pl index 7f558a128b5..9d217ef0af1 100644 --- a/mozilla/js/tests/mklistpage.pl +++ b/mozilla/js/tests/mklistpage.pl @@ -201,7 +201,7 @@ sub process_test { $javascript .= "suites[\"$suite\"].testDirs[\"$test_dir\"].tests" . "[\"$test\"] = \"radio$uid\"\n"; $html .= " " . + "onclick='return onRadioClick(\"radio$uid\");'>" . "" . "$test $title
\n";