| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style id="sheet"> | 2 <style id="sheet"> |
| 3 @font-face { | 3 @font-face { |
| 4 font-family: myahem; | 4 font-family: myahem; |
| 5 src: url(../../resources/Ahem.ttf); | 5 src: url(../../resources/Ahem.ttf); |
| 6 } | 6 } |
| 7 </style> | 7 </style> |
| 8 <script> | 8 <script> |
| 9 if (window.testRunner) | 9 if (window.testRunner) |
| 10 window.testRunner.waitUntilDone(); | 10 window.testRunner.waitUntilDone(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 face.loaded.then(finish); | 29 face.loaded.then(finish); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function finish() { | 32 function finish() { |
| 33 if (window.testRunner) | 33 if (window.testRunner) |
| 34 window.testRunner.notifyDone(); | 34 window.testRunner.notifyDone(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 onload = function() { | 37 onload = function() { |
| 38 setTimeout(runTest, 0); | 38 // FIXME: we need a better way of waiting for chromium events to happen |
| 39 setTimeout(runTest, 1); |
| 39 } | 40 } |
| 40 </script> | 41 </script> |
| 41 <p>You should see a black rectangle below.</p> | 42 <p>You should see a black rectangle below.</p> |
| 42 <div id="t">FAIL</div> | 43 <div id="t">FAIL</div> |
| OLD | NEW |