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>
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',"");