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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html

Issue 1893233002: WebFonts: reset m_loadLimitState on memory cache revalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: #14 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/webfont-performance-duration.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html b/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html
index b998ce592ebd0d6f4410ce3b46cdc8e334253333..6120c03200de4fa4365fa15c79337a373ee7f162 100644
--- a/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html
@@ -4,8 +4,7 @@
<div id="target">Hello webfont</div>
<script>
-if (window.testRunner)
- testRunner.waitUntilDone();
+jsTestIsAsync = true;
var waitMillisBeforeFetching = 300;
var entry;
@@ -22,7 +21,6 @@ new Promise(function(resolve) {
var name = document.location.origin + '/misc/resources/acid3/font.ttf';
entry = window.performance.getEntriesByName(name)[0];
shouldBeTrue('entry.startTime >= waitMillisBeforeFetching');
- if (window.testRunner)
- testRunner.notifyDone();
+ finishJSTest();
});
</script>

Powered by Google App Engine
This is Rietveld 408576698