Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / collection-idempotence.html
blob3e92676bcea201d68edcfdbb60d8b0cf9bbdeda6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <table><tr><td></td></tr></table>
9 <map><area></area></map>
10 <select><option></option></select>
11 <script>
13 description("This test verifies that collection getters return the same collection when called repeatedly.");
15 var collections = [
16 "document.all",
17 "document.images",
18 "document.embeds",
19 "document.applets",
20 "document.links",
21 "document.forms",
22 "document.anchors",
23 "document.scripts",
24 "document.getElementsByTagName('table')[0].rows[0].cells",
25 "document.getElementsByTagName('table')[0].tBodies",
26 "document.getElementsByTagName('table')[0].tBodies[0].rows",
27 "document.body.children",
28 "document.getElementsByTagName('map')[0].areas",
29 "document.getElementsByTagName('select')[0].options"
32 for (var i = 0; i < collections.length; ++i) {
33 shouldBe(collections[i], collections[i]);
34 shouldBeTrue(collections[i] + " === " + collections[i]);
37 </script>
38 </body>
39 </html>