| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 'MutationEvent', | 96 'MutationEvent', |
| 97 'NamedNodeMap', | 97 'NamedNodeMap', |
| 98 'NodeFilter', | 98 'NodeFilter', |
| 99 'NodeList', | 99 'NodeList', |
| 100 'Plugin', | 100 'Plugin', |
| 101 'PluginArray', | 101 'PluginArray', |
| 102 'StyleSheet', | 102 'StyleSheet', |
| 103 'StyleSheetList', | 103 'StyleSheetList', |
| 104 'TextEvent', | 104 'TextEvent', |
| 105 'XPathResult', | 105 'XPathResult', |
| 106 'BarInfo', | 106 'BarProp', |
| 107 'CanvasGradient', | 107 'CanvasGradient', |
| 108 'CanvasPattern', | 108 'CanvasPattern', |
| 109 'Console', | 109 'Console', |
| 110 'Selection', | 110 'Selection', |
| 111 'Window', | 111 'Window', |
| 112 'History', | 112 'History', |
| 113 'HTMLOptionsCollection', | 113 'HTMLOptionsCollection', |
| 114 'Location', | 114 'Location', |
| 115 'Navigator', | 115 'Navigator', |
| 116 'NodeIterator', | 116 'NodeIterator', |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 "'[object " + objects_different_constructor[obj] + "]'"); | 197 "'[object " + objects_different_constructor[obj] + "]'"); |
| 198 element.id = "element"; | 198 element.id = "element"; |
| 199 element.name = obj; | 199 element.name = obj; |
| 200 shouldBe("TryAllocate('" + obj + "')", | 200 shouldBe("TryAllocate('" + obj + "')", |
| 201 "'[object " + objects_different_constructor[obj] + "]'"); | 201 "'[object " + objects_different_constructor[obj] + "]'"); |
| 202 element.name = "element_name"; | 202 element.name = "element_name"; |
| 203 } | 203 } |
| 204 </script> | 204 </script> |
| 205 </body> | 205 </body> |
| 206 </html> | 206 </html> |
| OLD | NEW |