| Index: third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html b/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0551dfe208f3649ad4320666a5737efc57421de4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/css/css-non-blocking.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<style type="text/css">
|
| +h1 { background-color: blue }
|
| +</style>
|
| +</head>
|
| +<script>
|
| +var link = document.createElement('link');
|
| +link.setAttribute('rel', 'stylesheet');
|
| +link.setAttribute('type', 'text/css');
|
| +link.setAttribute('href', 'resources/slow-loading-sheet.php?color=red');
|
| +document.head.appendChild(link);
|
| +</script>
|
| +<h1 id='title'>Dynamically inserted StyleSheet shouldn't block loading.</h1>
|
| +<script>
|
| +var style = window.getComputedStyle(document.getElementById('title'), '');
|
| +document.write(style['background-color']);
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| +}
|
| +</script>
|
|
|