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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html

Issue 1829403002: Clean up font loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Resource_status
Patch Set: Created 4 years, 8 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: third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html b/third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html
index ea00bc20b148fe5195f38eb84d09b4492ff47e1e..c1c13e38e9c1bcef7529587ff1c356be937a7149 100644
--- a/third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html
@@ -18,7 +18,9 @@
if (window.testRunner)
testRunner.waitUntilDone();
-window.onload = function() {
+window.onload = setTimeout(runTest, 0);
Nate Chapin 2016/04/07 23:46:16 Without the setTimeout(,0), the font load would st
hiroshige 2016/04/08 01:02:04 Shouldn't this be |window.onload = function() { se
Nate Chapin 2016/04/11 18:47:32 Wow, I'm bad at Javascript. Done.
+
+function runTest() {
document.getElementById('test').classList.add('test');
setTimeout(function() {
var newStyle = document.createElement('style');
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/core.gypi » ('j') | third_party/WebKit/Source/core/css/FontLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698