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

Side by Side 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, 6 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style id="link1">span { margin: 1px; }</style>
4 <style id="link2"></style>
5 <script src="../../fast/js/resources/js-test-pre.js"></script>
6 </head>
7 <body style="margin: 1px">
8 <div id="testElements">
9 <input type="text" id="element0" name="foo">
10 <input type="text" id="element1" name="bar">
11 </div>
12 <script>
13 description("This test ensures the collection item obtained by named property ge tter is overridden by object's own property.");
14
15 shouldBe("document.all.foo", "document.getElementById('element0')");
16 document.all.foo = 1;
17 shouldBe("document.all.foo", "1");
18
19 shouldBe("document.styleSheets.link1", "document.styleSheets[0]");
20 document.styleSheets.link1 = 1;
21 shouldBe("document.styleSheets.link1", "1");
22
23 shouldBe("document.body.attributes.style", "document.body.attributes['style']");
24 document.body.attributes.style = 1;
25 shouldBe("document.body.attributes.style", "1");
26
27
28 document.getElementById('testElements').style.display = 'none';
29
30 var successfullyParsed = true;
31
32 </script>
33 <script src="../../fast/js/resources/js-test-post.js"></script>
34 </body>
35 </html>
OLDNEW
« 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