Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: LayoutTests/http/tests/fouc/scroll-left-while-loading.html

Issue 339573005: Wrong pending sheets test causing FOUC. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/fouc/scroll-left-while-loading-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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">
« no previous file with comments | « no previous file | LayoutTests/http/tests/fouc/scroll-left-while-loading-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698