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

Side by Side Diff: LayoutTests/web-animations-api/player-finish-sample-only.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 log('FAIL: seeking to finish should not queue event'); 49 log('FAIL: seeking to finish should not queue event');
48 } 50 }
49 51
50 function onFinishBottom(event) { 52 function onFinishBottom(event) {
51 log('FAIL: seeking past finish should not queue event'); 53 log('FAIL: seeking past finish should not queue event');
52 } 54 }
53 55
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 </script> 88 </script>
87 </head> 89 </head>
88 <body> 90 <body>
89 <div class="anim" id="top"></div> 91 <div class="anim" id="top"></div>
90 <div class="anim" id="middle"></div> 92 <div class="anim" id="middle"></div>
91 <div class="anim" id="bottom"></div> 93 <div class="anim" id="bottom"></div>
92 <div id="results"></div> 94 <div id="results"></div>
93 </body> 95 </body>
94 </html> 96 </html>
95 97
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/player-finish-repeats.html ('k') | LayoutTests/web-animations-api/resource-loading.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698