Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / preloader / scan-body-from-head-script.html
blob380aad96003230e12050daa4f3ba23e3f2ecab77
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function checkForPreload() {
8 var result;
9 if (internals.isPreloaded("resources/image1.png") && internals.isPreloaded("resources/script1.js"))
10 result = "PASS";
11 else
12 result = "FAIL";
13 document.getElementsByTagName("body")[0].appendChild(document.createTextNode(result));
16 window.addEventListener("DOMContentLoaded", checkForPreload, false);
17 </script>
18 <script src=resources/non-existant.js></script>
19 </head>
20 <body>
21 <script>document.write("<plaintext>");</script>
22 This tests that resources in the body which block parsing (script, css) are preloaded
23 ahead of other resources (images). It requires DumpRenderTree to see the log of what
24 resources are loaded.
25 <img src=resources/image1.png>
26 <script src=resources/script1.js></script>
27 </body>
28 </html>