| Index: LayoutTests/fast/dom/script-tests/collection-item-should-be-overridden-by-own-property.js
|
| diff --git a/LayoutTests/fast/dom/script-tests/collection-item-should-be-overridden-by-own-property.js b/LayoutTests/fast/dom/script-tests/collection-item-should-be-overridden-by-own-property.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f9f8e62b0a6474ccad62892b179f418a3326ef6e
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/script-tests/collection-item-should-be-overridden-by-own-property.js
|
| @@ -0,0 +1,22 @@
|
| +description("This test ensures the collection item obtained by named property getter is overridden by object's own property.");
|
| +
|
| +var form = document.all;
|
| +var select = document.querySelector('select');
|
| +var table = document.querySelector('table');
|
| +shouldBe("document.all.foo", "document.getElementById('element0')");
|
| +document.all.foo = 1;
|
| +shouldBe("document.all.foo", "1");
|
| +
|
| +shouldBe("document.styleSheets.link1", "document.styleSheets[0]");
|
| +document.styleSheets.link1 = 1;
|
| +shouldBe("document.styleSheets.link1", "1");
|
| +
|
| +shouldBe("document.body.attributes.style", "document.body.attributes['style']");
|
| +document.body.attributes.style = 1;
|
| +shouldBe("document.body.attributes.style", "1");
|
| +
|
| +
|
| +document.getElementById('testElements').style.display = 'none';
|
| +
|
| +var successfullyParsed = true;
|
| +
|
|
|