Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / collection-item-should-be-overridden-by-own-property.html
blobe687578051730c94583ce8df41be7531a54a9471
1 <html>
2 <head>
3 <style id="link1">span { margin: 1px; }</style>
4 <style id="link2"></style>
5 <script src="../../resources/js-test.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 getter is overridden by object's own property.");
15 shouldBe("document.all.foo", "document.getElementById('element0')");
16 document.all.foo = 1;
17 shouldBe("document.all.foo", "1");
19 shouldBe("document.styleSheets.link1", "document.styleSheets[0]");
20 document.styleSheets.link1 = 1;
21 shouldBe("document.styleSheets.link1", "1");
23 shouldBe("document.body.attributes.style", "document.body.attributes['style']");
24 document.body.attributes.style = 1;
25 shouldBe("document.body.attributes.style", "1");
28 document.getElementById('testElements').style.display = 'none';
30 var successfullyParsed = true;
32 </script>
33 </body>
34 </html>