Chromium Code Reviews| Index: LayoutTests/http/tests/fouc/scroll-left-while-loading.html |
| diff --git a/LayoutTests/http/tests/fouc/scroll-left-while-loading.html b/LayoutTests/http/tests/fouc/scroll-left-while-loading.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b307cd56ed5850a687e33b14504f579d72404510 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/fouc/scroll-left-while-loading.html |
| @@ -0,0 +1,20 @@ |
| +<!DOCTYPE html> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| +} |
| +setTimeout(function(){ |
| + document.body.scrollLeft; |
| + // Check that ignoreLayoutWithPendingStylesheets will return true if we did a |
| + // forced repaint after the access to scrollLeft. We should not since the delayed |
| + // stylesheet below is pending. |
| + if (!window.internals || internals.ignoreLayoutWithPendingStylesheets(document)) |
| + document.write("FAIL"); |
| + else |
| + document.write("PASS"); |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| +}, 0); |
| +</script> |
|
esprehn
2014/06/17 23:16:56
This might technically be racing since the parser
|
| +<link rel="stylesheet" href="/resources/slow-script.pl?delay=100"> |