3 <title>Original Title
</title>
4 <link rel=
"shortcut icon" type=
"image/x-icon" href=
"http://test.com/oldfavicon.ico"/>
5 <link rel=
"apple-touch-icon" type=
"image/png" href=
"http://test.com/i/touch.png"/>
6 <link rel=
"apple-touch-icon-precomposed" type=
"image/png" href=
"http://test.com/i/touch-precomposed.png"/>
7 <script src=
"../../resources/js-test.js"></script>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 debug('Tests that all favicons and touch icons are in document.iconURLs()');
15 // Fetch the actual list of icon URLs.
16 var actualURLs
= window
.internals
.allIconURLs(document
);
18 if (!actualURLs
[0] || actualURLs
[0] != "http://test.com/oldfavicon.ico") {
19 debug("Test failed.. not the right icon on first place in document.iconURLs()")
23 if (window
.internals
&& window
.internals
.runtimeFlags
.touchIconLoadingEnabled
) {
24 if (!actualURLs
[1] || actualURLs
[1] != "http://test.com/i/touch.png") {
25 debug("Test failed.. apple touch icon missing or invalid.")
29 if (!actualURLs
[2] || actualURLs
[2] != "http://test.com/i/touch-precomposed.png") {
30 debug("Test failed.. apple touch icon missing or invalid.")
35 debug("All icons are preset and in-order in document.iconURLs()")
39 <body onload='runTests();'
>