Handle meta viewport in HTMLPreloadScanner
[WebKit-https.git] / LayoutTests / fast / dom / HTMLMetaElement / meta-preloader.html
1 <html>
2 <head>
3 </head>
4 <body>
5 You should see 1 line with "SUCCESS" below:
6 <div id=result></div>
7 <script>
8 if (window.testRunner)
9     testRunner.dumpAsText();
10
11 function checkExpected(actual, expected)
12 {
13     var result = document.getElementById("result");
14     if (actual != expected)
15         result.innerHTML = "<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>";
16     else
17         result.innerHTML = "<p>SUCCESS (value: \"" + actual + "\")</p>";
18 }
19
20 if (window.internals)
21     checkExpected(internals.testPreloaderSettingViewport(), true);
22 </script>
23 </body>
24 </html>