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

Side by Side Diff: LayoutTests/web-animations-api/player-finish-event.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css"> 4 <style type="text/css">
5 .anim { 5 .anim {
6 position: absolute; 6 position: absolute;
7 left: 10px; 7 left: 10px;
8 height: 90px; 8 height: 90px;
9 width: 100px; 9 width: 100px;
10 background-color: black; 10 background-color: black;
(...skipping 22 matching lines...) Expand all
33 } else { 33 } else {
34 log('FAIL: event timelineTime ' + event.timelineTime + 34 log('FAIL: event timelineTime ' + event.timelineTime +
35 ' does not equal timeline currentTime ' + document.timeline.currentT ime); 35 ' does not equal timeline currentTime ' + document.timeline.currentT ime);
36 } 36 }
37 } 37 }
38 38
39 var playerTop, playerMiddle, playerBottom; 39 var playerTop, playerMiddle, playerBottom;
40 40
41 function onFinishTop(event) { 41 function onFinishTop(event) {
42 validateFinishEvent(playerTop, event); 42 validateFinishEvent(playerTop, event);
43 testRunner.notifyDone(); 43 if (window.testRunner) {
44 testRunner.notifyDone();
45 }
44 } 46 }
45 47
46 function onFinishMiddle(event) { 48 function onFinishMiddle(event) {
47 validateFinishEvent(playerMiddle, event); 49 validateFinishEvent(playerMiddle, event);
48 } 50 }
49 51
50 function onFinishBottom(event) { 52 function onFinishBottom(event) {
51 validateFinishEvent(playerBottom, event); 53 validateFinishEvent(playerBottom, event);
52 } 54 }
53 55
(...skipping 27 matching lines...) Expand all
81 </script> 83 </script>
82 </head> 84 </head>
83 <body> 85 <body>
84 <div class="anim" id="top"></div> 86 <div class="anim" id="top"></div>
85 <div class="anim" id="middle"></div> 87 <div class="anim" id="middle"></div>
86 <div class="anim" id="bottom"></div> 88 <div class="anim" id="bottom"></div>
87 <div id="results"></div> 89 <div id="results"></div>
88 </body> 90 </body>
89 </html> 91 </html>
90 92
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/player-cancel-finishes.html ('k') | LayoutTests/web-animations-api/player-finish-repeats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698