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 @@