Chromium Code Reviews| Index: LayoutTests/http/tests/htmlimports/import-preload.html |
| diff --git a/LayoutTests/http/tests/htmlimports/import-preload.html b/LayoutTests/http/tests/htmlimports/import-preload.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f612cf23d430d72ffe28651be3b6fd163b6340df |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/htmlimports/import-preload.html |
| @@ -0,0 +1,20 @@ |
| +<!DOCTYPE html> |
| +<head> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| +function testPreload(url, doc) |
| +{ |
| + if (internals.isPreloadedBy(url, doc)) { |
| + console.log("PASS: " + url + " is preloaded."); |
| + } else { |
| + console.log("FAIL: " + url + " should be preloaded"); |
| + } |
| +} |
| +</script> |
| +<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script> |
| +<link id=target rel=import href="resources/preload.html"> |
| +<script> |
| +testPreload('resources/preload.html', document); |
|
Yoav Weiss
2015/06/09 07:53:40
Can you move the test script to be above the <link
yoichio
2015/06/11 04:27:44
Done.
|
| +</script> |
| +</head> |