| 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..321396b91c87aea2fc9868f3a916787825e834d7
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/fouc/scroll-left-while-loading.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +setTimeout(function(){
|
| + document.scrollingElement.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");
|
| + document.close();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}, 0);
|
| +</script>
|
| +<link rel="stylesheet" href="/resources/slow-script.pl?delay=100">
|
|
|