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

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: update 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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
haraken 2013/06/03 09:42:53 Nit: <!DOCTYPE> is for HTML5.
2 <html>
3 <head>
4 <style id="link1">span { margin: 1px; }</style>
5 <style id="link2"></style>
6 <script src="../../fast/js/resources/js-test-pre.js"></script>
7 </head>
8 <body style="margin: 1px">
9 <div id="testElements">
10 <input type="text" id="element0" name="foo">
11 <input type="text" id="element1" name="bar">
12 </div>
13 <script>
14 description("This test ensures the collection item obtained by named property ge tter is overridden by object's own property.");
15
16 shouldBe("document.all.foo", "document.getElementById('element0')");
17 document.all.foo = 1;
18 shouldBe("document.all.foo", "1");
19
20 shouldBe("document.styleSheets.link1", "document.styleSheets[0]");
21 document.styleSheets.link1 = 1;
22 shouldBe("document.styleSheets.link1", "1");
23
24 shouldBe("document.body.attributes.style", "document.body.attributes['style']");
25 document.body.attributes.style = 1;
26 shouldBe("document.body.attributes.style", "1");
27
28
29 document.getElementById('testElements').style.display = 'none';
30
31 var successfullyParsed = true;
32
33 </script>
34 <script src="../../fast/js/resources/js-test-post.js"></script>
35 </body>
36 </html>
37
haraken 2013/06/03 09:42:53 Nit: Unnecessary empty lines.
38
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