blob: 4cb9e2c78920840b9904acf21a1676f762b7b35c [file] [log] [blame]
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<ol></ol>
<div id="console"></div>
<script>
description(
'This tests that indexed assignments to items of a NodeList do not override original values. ' +
'See http://code.google.com/p/chromium/issues/detail?id=27967');
var nodeList = document.getElementsByTagName('ol');
var first = nodeList[0];
shouldBeFalse("first == null");
nodeList[0] = null;
for (var i = 0; i < 13; i++) {
shouldBe("nodeList[0]", "first");
}
</script>
</body>
</html>