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

Side by Side Diff: LayoutTests/http/tests/webfont/webfont-cors.html

Issue 816923002: Switch FontFaceSet#ready from a method to an attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 @font-face { 3 @font-face {
4 font-family: corsOK; 4 font-family: corsOK;
5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php); 5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php);
6 } 6 }
7 @font-face { 7 @font-face {
8 font-family: corsNG; 8 font-family: corsNG;
9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf); 9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf);
10 } 10 }
11 </style> 11 </style>
12 <div style="font-family: corsOK;"> 12 <div style="font-family: corsOK;">
13 This text should be rendered with ahem font. 13 This text should be rendered with ahem font.
14 </div> 14 </div>
15 <div style="font-family: corsNG;"> 15 <div style="font-family: corsNG;">
16 This text should NOT be rendered with ahem font. 16 This text should NOT be rendered with ahem font.
17 </div> 17 </div>
18 <script> 18 <script>
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 21
22 document.fonts.ready().then(function() { 22 document.fonts.ready.then(function() {
23 if (window.testRunner) 23 if (window.testRunner)
24 testRunner.notifyDone(); 24 testRunner.notifyDone();
25 }); 25 });
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698