Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / icon-size-property.html
blob178044406a7b309dd7afa01f22af17f4aa7c5b81
1 <html>
2 <head>
3 <link id="rel-icon" rel="icon" sizes="23x47 19x42" type="image/x-icon" href="http://test.com/oldfavicon.ico"/>
4 <link id="no-sizes" rel="icon" type="image/x-icon" href="http://test.com/oldfavicon.ico"/>
5 <link id="empty-sizes" rel="icon" sizes="" type="image/x-icon" href="http://test.com/oldfavicon.ico"/>
7 <script src="../../resources/js-test.js"></script>
8 </head>
9 <body>
11 <script>
12 description('Tests for sizes attribute of the link element.');
14 var icon=document.getElementById("rel-icon");
16 shouldEvaluateTo('icon.sizes.length',2);
17 shouldBeEqualToString('icon.sizes.value',"23x47 19x42");
19 icon.sizes="10x10 20x20 30x30";
20 shouldEvaluateTo('icon.sizes.length',3);
21 shouldBeEqualToString('icon.sizes.value',"10x10 20x20 30x30");
23 var icon=document.getElementById("no-sizes");
24 shouldEvaluateTo('icon.sizes.length',0);
25 shouldBeEqualToString('icon.sizes.value',"");
27 var icon=document.getElementById("empty-sizes");
28 shouldEvaluateTo('icon.sizes.length',0);
29 shouldBeEqualToString('icon.sizes.value',"");
30 </script>
31 </body>
32 </html>