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

Side by Side Diff: LayoutTests/web-animations-api/resource-loading.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 | « LayoutTests/web-animations-api/player-finish-sample-only.html ('k') | no next file » | 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 <style> 2 <style>
3 #target { 3 #target {
4 width: 100px; 4 width: 100px;
5 height: 100px; 5 height: 100px;
6 } 6 }
7 </style> 7 </style>
8 <div id='target'></div> 8 <div id='target'></div>
9 This test passes if it does not crash. Newly referenced resources in the Web Ani mations api should be resolved in the style building stage. 9 This test passes if it does not crash. Newly referenced resources in the Web Ani mations api should be resolved in the style building stage.
10 <script> 10 <script>
11 target.animate([ 11 target.animate([
12 {backgroundImage: 'url(../animations/resources/blue-100.png)', color: 'blue' }, 12 {backgroundImage: 'url(../animations/resources/blue-100.png)', color: 'blue' },
13 {backgroundImage: 'url(../animations/resources/green-100.png)', color: 'gree n'}, 13 {backgroundImage: 'url(../animations/resources/green-100.png)', color: 'gree n'},
14 ], {duration: 1, fill: 'forwards'}); 14 ], {duration: 1, fill: 'forwards'});
15 if (window.testRunner) { 15 if (window.testRunner) {
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
18 } 18 }
19 requestAnimationFrame(function() { 19 requestAnimationFrame(function() {
20 testRunner.notifyDone(); 20 if (window.testRunner) {
21 testRunner.notifyDone();
22 }
21 }); 23 });
22 </script> 24 </script>
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/player-finish-sample-only.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698