Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Unified Diff: LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html

Issue 15690020: [binding] Check own property on named property accessor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: udpated tests Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html
diff --git a/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html b/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html
new file mode 100644
index 0000000000000000000000000000000000000000..ae3ea2b62103141a7cad3f54297f3f7378790ac9
--- /dev/null
+++ b/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html
@@ -0,0 +1,35 @@
+<html>
+<head>
+ <style id="link1">span { margin: 1px; }</style>
+ <style id="link2"></style>
+ <script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body style="margin: 1px">
+<div id="testElements">
+<input type="text" id="element0" name="foo">
+<input type="text" id="element1" name="bar">
+</div>
+<script>
+description("This test ensures the collection item obtained by named property getter is overridden by object's own property.");
+
+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;
+
+</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698