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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webfont/font-load-revalidation.html

Issue 1893233002: WebFonts: reset m_loadLimitState on memory cache revalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a LayoutTest 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/font-load-revalidation.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/font-load-revalidation.html b/third_party/WebKit/LayoutTests/http/tests/webfont/font-load-revalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..f24f38ffac68e03321e04fe8a4e3d7d44e2d3cc8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/font-load-revalidation.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<head>
+<script src="/js-test-resources/js-test.js"></script>
+</head>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+var reloaded = false;
+
+window.addEventListener('message', e => {
+ var message = e.data.split(':');
+ if (message[0] == 'reload') {
+ if (!reloaded) {
+ reloaded = true;
+ frames[0].location.reload();
+ } else {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+ } else if (message[0] == 'pass') {
+ testPassed(message[1]);
+ } else {
+ testFailed(message[1]);
+ }
+});
+
+</script>
+<iframe id="iframe" src="resources/font-load-revalidation-frame.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698