| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 element.id = obj; | 205 element.id = obj; |
| 206 shouldBe("TryAllocate('" + obj + "')", | 206 shouldBe("TryAllocate('" + obj + "')", |
| 207 "'[object " + objects_different_constructor[obj] + "]'"); | 207 "'[object " + objects_different_constructor[obj] + "]'"); |
| 208 element.id = "element"; | 208 element.id = "element"; |
| 209 element.name = obj; | 209 element.name = obj; |
| 210 shouldBe("TryAllocate('" + obj + "')", | 210 shouldBe("TryAllocate('" + obj + "')", |
| 211 "'[object " + objects_different_constructor[obj] + "]'"); | 211 "'[object " + objects_different_constructor[obj] + "]'"); |
| 212 element.name = "element_name"; | 212 element.name = "element_name"; |
| 213 } | 213 } |
| 214 </script> | 214 </script> |
| 215 <script src="../js/resources/js-test-post.js"></script> | |
| 216 </body> | 215 </body> |
| 217 </html> | 216 </html> |
| OLD | NEW |