b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug2082.html
blobf429ce754c2b19cb34a600bcf5507ac7b698d3bc
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=2082
5 -->
6 <head>
7 <title>Test for Bug 2082</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2082">Mozilla Bug 2082</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <FORM name="gui" id="gui">
17 <INPUT TYPE="text" NAME="field" VALUE="some value">
18 </FORM>
19 </div>
20 <pre id="test">
21 <script class="testbody" type="text/javascript">
23 /** Test for Bug 2082 **/
24 var guiform = document.getElementById("gui");
25 ok(document.getElementById("gui").hasChildNodes(), "form elements should be treated as form's children");
27 </script>
28 </pre>
29 </body>
30 </html>