| OLD | NEW |
| 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> |
| OLD | NEW |