Backed out changeset cf9fcc2c89b1
authorRobert O'Callahan <robert@ocallahan.org>
Tue, 01 Jun 2010 13:53:05 +1200
changeset 42976 2b6206022ee9eabb1169c532dc38c4bac6664bd5
parent 42966 cf9fcc2c89b1bc2440ba0259d27fc5ab279b8b9d
child 42977 5c06b06da1b34861210dfe74db97dae7482533cb
push idunknown
push userunknown
push dateunknown
milestone1.9.3a5pre
backs outcf9fcc2c89b1bc2440ba0259d27fc5ab279b8b9d
Backed out changeset cf9fcc2c89b1
content/html/content/test/test_bug392567.html
--- a/content/html/content/test/test_bug392567.html
+++ b/content/html/content/test/test_bug392567.html
@@ -20,52 +20,46 @@ https://bugzilla.mozilla.org/show_bug.cg
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 392567 **/
 
 var dataUrl = "http://mochi.test:8888/tests/content/html/content/test/bug392567.jar";
 var jarUrl = "jar:" + dataUrl + "!/index.html";
 var httpUrl = location.href.replace(/\.html.*/, "_404");
-var previousDir = location.href.replace(/test\/[^\/]*$/, "");
 
 var form = document.forms.testForm;
 var frame = frames.testFrame;
 document.getElementById("testFrame").onload = processTestResult;
 
 // List of tests to run, each test consists of form action URL and expected result URL
 var tests = [
   [jarUrl, jarUrl + "?$PARAMS"],
   [jarUrl + "?jarTest1=jarTest2", jarUrl + "?$PARAMS"],
   [jarUrl + "?jarTest3=jarTest4#jarTest5", jarUrl + "?$PARAMS#jarTest5"],
   ["data:text/html,<html></html>", "data:text/html,<html></html>?$PARAMS"],
   ["data:text/html,<html>How%20about%20this?</html>", "data:text/html,<html>How%20about%20this?$PARAMS"],
   [httpUrl, httpUrl + "?$PARAMS"],
   [httpUrl + "?httpTest1=httpTest2", httpUrl + "?$PARAMS"],
-  [httpUrl + "?httpTest3=httpTest4#httpTest5", httpUrl + "?$PARAMS#httpTest5"],
-  ["", jarUrl + "?key=value0"],
-  [" ", jarUrl + "?key=value0"],
-  ["../", previousDir + "?$PARAMS"],
+  [httpUrl + "?httpTest3=httpTest4#httpTest5", httpUrl + "?$PARAMS#httpTest5"]
 ];
 
 var currentTest = -1;
 
 SimpleTest.waitForExplicitFinish(); 
 runNextTest();
 
 function runNextTest() {
   currentTest++;
   if (currentTest >= tests.length) {
     SimpleTest.finish();
     return;
   }
 
-  form.setAttribute("action", tests[currentTest][0]);
-  is(form.action, tests[currentTest][0],
-     "action IDL attribute should reflect the action content attribute");
+  form.action = tests[currentTest][0];
   form.key.value = "value" + currentTest;
   form.submit();
 }
 
 function processTestResult() {
   var expected = tests[currentTest][1].replace(/\$PARAMS/, "key=value" + currentTest);
   is(frame.location.href, expected, "Submitting to " + tests[currentTest][0]);