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

Side by Side Diff: LayoutTests/fast/css/font-face-css-change-while-loading.html

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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
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 requestAnimationFrame(runTest);
39 } 39 }
40 </script> 40 </script>
41 <p>You should see a black rectangle below.</p> 41 <p>You should see a black rectangle below.</p>
42 <div id="t">FAIL</div> 42 <div id="t">FAIL</div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698