OLD | NEW |
| (Empty) |
1 <html> | |
2 <script type="text/javascript" src="resources/window-properties.js"></script> | |
3 | |
4 <script> | |
5 if (window.layoutTestController) { | |
6 layoutTestController.dumpAsText(); | |
7 layoutTestController.waitUntilDone(); | |
8 } | |
9 var my_input; | |
10 var HTMLInputElement_func; | |
11 | |
12 var win = window.window; | |
13 var doc = window.document; | |
14 | |
15 if (window.layoutTestController) | |
16 layoutTestController.dumpAsText(); | |
17 | |
18 function check(name) { | |
19 try { | |
20 var out = doc.getElementById("MYRESULT"); | |
21 var orig_v = win[name]; | |
22 my_input.setAttribute("id", name); | |
23 var new_v = win[name]; | |
24 var r = (orig_v === new_v) ? 'PASS' : 'FAIL'; | |
25 out.innerHTML = out.innerHTML + "window." + name + " : " + r + "<br>"; | |
26 } catch (e) { | |
27 win.alert(name + ' ' + e); | |
28 } | |
29 } | |
30 | |
31 function runTest() { | |
32 my_input = window.MYINPUT; // this is the original HTMLInputElement | |
33 HTMLInputElement_func = window.HTMLInputElement; | |
34 | |
35 for (var i = 0; i < properties.length; i++) { | |
36 check(properties[i]); | |
37 } | |
38 | |
39 if (window.layoutTestController) | |
40 layoutTestController.notifyDone(); | |
41 } | |
42 </script> | |
43 | |
44 <body onload="runTest()"> | |
45 <form> | |
46 <input id="MYINPUT" value="mmm" name="qs" type="text"/> | |
47 </form> | |
48 <div id="MYRESULT"></div> | |
49 | |
50 </body> | |
51 </html> | |
52 | |
OLD | NEW |