Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-collection-lookup.html
blob735067ce118a9bd0c6ce4bb11541289b373017c9
1 <body onload="runTest()">
2 <script>
3 function runTest() {
4 if (window.testRunner) {
5 testRunner.dumpAsText();
7 var form = document.createElement('form');
8 var input = document.createElement('input');
9 input.setAttribute("name", "test_field");
10 form.appendChild(input);
12 var message = "Failed";
13 try{
14 if (form.test_field)
15 message = "Passed";
16 }catch(e){
18 var console = document.getElementById("console");
19 var text = document.createTextNode(message);
20 console.appendChild(text);
22 </script>
23 <p>This tests looking up form elements from a form that is not yet appended to a document. See bug 10188.</p>
24 <div id="console"/>
25 </body>