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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 'HTMLTableColElement', | 73 'HTMLTableColElement', |
74 'HTMLTableElement', | 74 'HTMLTableElement', |
75 'HTMLTableSectionElement', | 75 'HTMLTableSectionElement', |
76 'HTMLTableCellElement', | 76 'HTMLTableCellElement', |
77 'HTMLTableRowElement', | 77 'HTMLTableRowElement', |
78 'HTMLTextAreaElement', | 78 'HTMLTextAreaElement', |
79 'HTMLTitleElement', | 79 'HTMLTitleElement', |
80 'HTMLUListElement', | 80 'HTMLUListElement', |
81 'HTMLElement', | 81 'HTMLElement', |
82 'CanvasRenderingContext2D', | 82 'CanvasRenderingContext2D', |
83 'Clipboard', | |
84 'Counter', | 83 'Counter', |
85 'CSSCharsetRule', | 84 'CSSCharsetRule', |
86 'CSSFontFaceRule', | 85 'CSSFontFaceRule', |
87 'CSSImportRule', | 86 'CSSImportRule', |
88 'CSSMediaRule', | 87 'CSSMediaRule', |
89 'CSSPageRule', | 88 'CSSPageRule', |
90 'CSSPrimitiveValue', | 89 'CSSPrimitiveValue', |
91 'CSSRule', | 90 'CSSRule', |
92 'CSSRuleList', | 91 'CSSRuleList', |
93 'CSSStyleDeclaration', | 92 'CSSStyleDeclaration', |
94 'CSSStyleRule', | 93 'CSSStyleRule', |
95 'CSSStyleSheet', | 94 'CSSStyleSheet', |
96 'CSSValue', | 95 'CSSValue', |
97 'CSSValueList', | 96 'CSSValueList', |
98 'DOMImplementation', | 97 'DOMImplementation', |
| 98 'DataTransfer', |
99 'HTMLCollection', | 99 'HTMLCollection', |
100 'MediaList', | 100 'MediaList', |
101 'MimeType', | 101 'MimeType', |
102 'MimeTypeArray', | 102 'MimeTypeArray', |
103 'MutationEvent', | 103 'MutationEvent', |
104 'NamedNodeMap', | 104 'NamedNodeMap', |
105 'NodeFilter', | 105 'NodeFilter', |
106 'NodeList', | 106 'NodeList', |
107 'Plugin', | 107 'Plugin', |
108 'PluginArray', | 108 'PluginArray', |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 "'[object " + objects_different_constructor[obj] + "]'"); | 206 "'[object " + objects_different_constructor[obj] + "]'"); |
207 element.id = "element"; | 207 element.id = "element"; |
208 element.name = obj; | 208 element.name = obj; |
209 shouldBe("TryAllocate('" + obj + "')", | 209 shouldBe("TryAllocate('" + obj + "')", |
210 "'[object " + objects_different_constructor[obj] + "]'"); | 210 "'[object " + objects_different_constructor[obj] + "]'"); |
211 element.name = "element_name"; | 211 element.name = "element_name"; |
212 } | 212 } |
213 </script> | 213 </script> |
214 </body> | 214 </body> |
215 </html> | 215 </html> |
OLD | NEW |