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

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

Issue 2717123003: RemoteFontFaceSource should keep FontCustomPlatformData over FontResource revalidation (Closed)
Patch Set: test description Created 3 years, 10 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 | third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation.html b/third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..16f868af5afa4432f12786d16c4a7111e6241545
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<style></style>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+function addFontFaceRule() {
+ let font = 'cachable-slow-ahem-loading.cgi?delay=50';
+ document.styleSheets[0].insertRule(
+ '@font-face { font-family: ahem; src: url(' + font + '); }',
+ document.styleSheets[0].cssRules.length);
+}
+
+addFontFaceRule();
+
+document.fonts.ready.then(() => {
+ addFontFaceRule();
+ document.fonts.onloadingdone = function() {
+ testRunner.notifyDone();
+ };
+});
+</script>
+<p>
+This tests that web font is displayed correctly after revalidation of font resource.
+
+You should see a black square below.
+</p>
+<div style="font-family: ahem">test</span>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698