blob: ed7c12e780081a94d2db822383483998804b616f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>
Tests that the named item created for an image with an ID is correctly removed.
The test passes, if you see a "PASS" message in the div below.
</p>
<form name="someName" title="first"></form>
<form name="someName" title="second"></form>
<script src="../../../resources/js-test.js"></script>
<script>
var collection;
shouldBe('collection = window.someName; collection.length', '2');
shouldBe('collection[0].title', '"first"');
shouldBe('collection[1].title', '"second"');
shouldBe('collection[1]; window.someName', 'collection');
shouldBe('collection = document.someName; collection.length', '2');
shouldBe('collection[0].title', '"first"');
shouldBe('collection[1].title', '"second"');
shouldBe('collection[1]; document.someName', 'collection');
</script>
</body>
</html>