Chromium Code Reviews| 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..58fcc0966d67e4b557c8d8a6596e97a8bc0eb0bd |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/webfont/font-face-revalidation.html |
| @@ -0,0 +1,26 @@ |
| +<!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> |
| +You should see a black square below. |
|
hiroshige
2017/03/01 20:30:45
Could you describe somewhere in this file what thi
Kunihiko Sakamoto
2017/03/03 02:17:23
Done. Actually this sentence is correct, "test" sh
|
| +</p> |
| +<div style="font-family: ahem">test</span> |