From edb94a5acbfc5819bc223316eb6509a6444d26f5 Mon Sep 17 00:00:00 2001 From: "rginda%netscape.com" Date: Mon, 29 Nov 1999 22:31:45 +0000 Subject: [PATCH] Changes to make list selection page work correctly on windows platform. git-svn-id: svn://10.0.0.236/trunk@54615 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/importList.html | 8 +++++--- mozilla/js/tests/mklistpage.pl | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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";