parser/htmlparser/tests/mochitest/test_bug418464.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/mochitest/test_bug418464.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +<form name="formGo" method="post">
     1.5 +  <input type="hidden">
     1.6 +</form>
     1.7 +<script>
     1.8 +  var form1 = document.formGo;
     1.9 +</script>
    1.10 +<form name="formGo2" method="post">
    1.11 +  <input type="Hidden">
    1.12 +</form>
    1.13 +<script>
    1.14 +  var form2 = document.formGo2;
    1.15 +</script>
    1.16 +  <!-- NOTE: The forms and scripts above this comment _must_ come first in this file-->
    1.17 +<!DOCTYPE HTML>
    1.18 +<html>
    1.19 +<!--
    1.20 +https://bugzilla.mozilla.org/show_bug.cgi?id=418464
    1.21 +-->
    1.22 +<head>
    1.23 +  <title>Test for Bug 418464</title>
    1.24 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.25 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.26 +</head>
    1.27 +<body>
    1.28 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=418464">Mozilla Bug 418464</a>
    1.29 +<p id="display"></p>
    1.30 +<div id="content" style="display: none">
    1.31 +  
    1.32 +</div>
    1.33 +<pre id="test">
    1.34 +<script class="testbody" type="text/javascript">
    1.35 +
    1.36 +/** Test for Bug 418464 **/
    1.37 +  is(form1 instanceof HTMLFormElement, true,
    1.38 +     "Should have a form here");
    1.39 +  is(form2 instanceof HTMLFormElement, true,
    1.40 +     "Should have a form here");
    1.41 +
    1.42 +</script>
    1.43 +</pre>
    1.44 +</body>
    1.45 +</html>
    1.46 +

mercurial