test_bug351633-1.html 948 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=351633
  5. -->
  6. <head>
  7. <title>Test for Bug 351633: Form submission</title>
  8. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  10. </head>
  11. <body>
  12. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=351633">Mozilla Bug 351633</a>
  13. <p id="display">
  14. <iframe id="frame" src="form-submit.html"></iframe>
  15. </p>
  16. <div id="content" style="display: none">
  17. </div>
  18. <pre id="test">
  19. <script class="testbody" type="text/javascript">
  20. /** Test for Bug 351633 **/
  21. var passJSUrl = false;
  22. function finishTest() {
  23. is(passJSUrl, true, "Unexpected result");
  24. SimpleTest.finish();
  25. }
  26. SimpleTest.waitForExplicitFinish();
  27. function runTest() {
  28. $("frame").contentDocument.getElementById("test").submit();
  29. }
  30. addLoadEvent(runTest);
  31. </script>
  32. </pre>
  33. </body>
  34. </html>