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

Side by Side Diff: LayoutTests/web-animations-api/font-builder-crash.html

Issue 436883002: Web Animations: guard testRunner usages. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix errata Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/player-cancel-finishes.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div id="target">This test passes if it does not crash.</div> 2 <div id="target">This test passes if it does not crash.</div>
3 <script> 3 <script>
4 target.animate([ 4 target.animate([
5 {fontSize: 'large', fontWeight: 'normal'}, 5 {fontSize: 'large', fontWeight: 'normal'},
6 {fontSize: 'small', fontWeight: 'bold'}, 6 {fontSize: 'small', fontWeight: 'bold'},
7 ], 1); 7 ], 1);
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 } 11 }
12 requestAnimationFrame(function() { 12 requestAnimationFrame(function() {
13 testRunner.notifyDone(); 13 if (window.testRunner) {
14 testRunner.notifyDone();
15 }
14 }); 16 });
15 </script> 17 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/player-cancel-finishes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698