OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <div id="element" name="element_name"></div> | 6 <div id="element" name="element_name"></div> |
7 <script> | 7 <script> |
8 description('This test checks that all but a handful of dom constructors throw e
xceptions, and the rest return reasonable objects. It also tests that those cons
tructors have higher precedence than a document element with the same ID or name
.'); | 8 description('This test checks that all but a handful of dom constructors throw e
xceptions, and the rest return reasonable objects. It also tests that those cons
tructors have higher precedence than a document element with the same ID or name
.'); |
9 | 9 |
10 var element = document.getElementById("element"); | 10 var element = document.getElementById("element"); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 'HTMLTableColElement', | 72 'HTMLTableColElement', |
73 'HTMLTableElement', | 73 'HTMLTableElement', |
74 'HTMLTableSectionElement', | 74 'HTMLTableSectionElement', |
75 'HTMLTableCellElement', | 75 'HTMLTableCellElement', |
76 'HTMLTableRowElement', | 76 'HTMLTableRowElement', |
77 'HTMLTextAreaElement', | 77 'HTMLTextAreaElement', |
78 'HTMLTitleElement', | 78 'HTMLTitleElement', |
79 'HTMLUListElement', | 79 'HTMLUListElement', |
80 'HTMLElement', | 80 'HTMLElement', |
81 'CanvasRenderingContext2D', | 81 'CanvasRenderingContext2D', |
82 'CSSCharsetRule', | |
83 'CSSFontFaceRule', | 82 'CSSFontFaceRule', |
84 'CSSImportRule', | 83 'CSSImportRule', |
85 'CSSMediaRule', | 84 'CSSMediaRule', |
86 'CSSPageRule', | 85 'CSSPageRule', |
87 'CSSRule', | 86 'CSSRule', |
88 'CSSRuleList', | 87 'CSSRuleList', |
89 'CSSStyleDeclaration', | 88 'CSSStyleDeclaration', |
90 'CSSStyleRule', | 89 'CSSStyleRule', |
91 'CSSStyleSheet', | 90 'CSSStyleSheet', |
92 'DOMImplementation', | 91 'DOMImplementation', |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 "'[object " + objects_different_constructor[obj] + "]'"); | 198 "'[object " + objects_different_constructor[obj] + "]'"); |
200 element.id = "element"; | 199 element.id = "element"; |
201 element.name = obj; | 200 element.name = obj; |
202 shouldBe("TryAllocate('" + obj + "')", | 201 shouldBe("TryAllocate('" + obj + "')", |
203 "'[object " + objects_different_constructor[obj] + "]'"); | 202 "'[object " + objects_different_constructor[obj] + "]'"); |
204 element.name = "element_name"; | 203 element.name = "element_name"; |
205 } | 204 } |
206 </script> | 205 </script> |
207 </body> | 206 </body> |
208 </html> | 207 </html> |
OLD | NEW |