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

Unified Diff: LayoutTests/http/tests/ManualTests/fouc/resources/slow-green.cgi

Issue 279463002: HTML Imports: Fix yet another FOUC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
Index: LayoutTests/http/tests/ManualTests/fouc/resources/slow-green.cgi
diff --git a/LayoutTests/http/tests/htmlimports/resources/blocking-script-js.cgi b/LayoutTests/http/tests/ManualTests/fouc/resources/slow-green.cgi
similarity index 66%
copy from LayoutTests/http/tests/htmlimports/resources/blocking-script-js.cgi
copy to LayoutTests/http/tests/ManualTests/fouc/resources/slow-green.cgi
index f9746cc808f0c99122679cdc29ec536054664a91..90ba615727b635e18ea621507efacec79a004ba1 100755
--- a/LayoutTests/http/tests/htmlimports/resources/blocking-script-js.cgi
+++ b/LayoutTests/http/tests/ManualTests/fouc/resources/slow-green.cgi
@@ -1,10 +1,14 @@
#!/usr/bin/perl -wT
use strict;
-print "Content-Type: text/javascript\n\n";
+print "Content-Type: text/html\n\n";
# If you want to make things super predictable, this will help for the cost of slowness.
# In practice, CGI invocation overhead is sufficiently slow.
-# sleep 1;
+sleep 1;
print <<EOF
-blockingScriptHasRun = true;
+<style>
+ #test {
+ background: green;
+ }
+</style>
EOF

Powered by Google App Engine
This is Rietveld 408576698