| 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 <p id="description"></p> | 6 <p id="description"></p> |
| 7 <ol></ol> | 7 <ol></ol> |
| 8 | 8 |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 description( | 12 description( |
| 13 'This tests that indexed assignments to items of a NodeList do not override or
iginal values. ' + | 13 'This tests that indexed assignments to items of a NodeList do not override or
iginal values. ' + |
| 14 'See http://code.google.com/p/chromium/issues/detail?id=27967'); | 14 'See http://code.google.com/p/chromium/issues/detail?id=27967'); |
| 15 | 15 |
| 16 var nodeList = document.getElementsByTagName('ol'); | 16 var nodeList = document.getElementsByTagName('ol'); |
| 17 var first = nodeList[0]; | 17 var first = nodeList[0]; |
| 18 shouldBeFalse("first == null"); | 18 shouldBeFalse("first == null"); |
| 19 | 19 |
| 20 nodeList[0] = null; | 20 nodeList[0] = null; |
| 21 for (var i = 0; i < 13; i++) { | 21 for (var i = 0; i < 13; i++) { |
| 22 shouldBe("nodeList[0]", "first"); | 22 shouldBe("nodeList[0]", "first"); |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 <script src="../../js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |