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

Side by Side Diff: content/test/data/gpu/pixel_video_mp4.html

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 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 | « content/test/data/gpu/pixel_scissor.html ('k') | content/test/data/gpu/pixel_video_vp9.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 2
3 <!-- READ BEFORE UPDATING: 3 <!-- READ BEFORE UPDATING:
4 If this test is updated make sure to increment the "revision" value of the 4 If this test is updated make sure to increment the "revision" value of the
5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure 5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure
6 that the baseline images are regenerated on the next run. 6 that the baseline images are regenerated on the next run.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
(...skipping 13 matching lines...) Expand all
24 if (video.readyState >= 4) { 24 if (video.readyState >= 4) {
25 waitForFinish(); 25 waitForFinish();
26 } else { 26 } else {
27 video.addEventListener('canplaythrough', waitForFinish, true); 27 video.addEventListener('canplaythrough', waitForFinish, true);
28 } 28 }
29 } 29 }
30 30
31 function waitForFinish() 31 function waitForFinish()
32 { 32 {
33 if (g_swapsBeforeAck == 0) { 33 if (g_swapsBeforeAck == 0) {
34 domAutomationController.setAutomationId(1);
35 domAutomationController.send("SUCCESS"); 34 domAutomationController.send("SUCCESS");
36 } else { 35 } else {
37 g_swapsBeforeAck--; 36 g_swapsBeforeAck--;
38 window.requestAnimationFrame(waitForFinish); 37 window.requestAnimationFrame(waitForFinish);
39 } 38 }
40 } 39 }
41 </script> 40 </script>
42 </head> 41 </head>
43 <body onload="main()"> 42 <body onload="main()">
44 <div id="container" style="position:absolute; top:0px; left:0px"> 43 <div id="container" style="position:absolute; top:0px; left:0px">
45 <video class="nomargin" id="video"> 44 <video class="nomargin" id="video">
46 <source src="/media/test/data/bear.mp4" type="video/mp4"> 45 <source src="/media/test/data/bear.mp4" type="video/mp4">
47 </video> 46 </video>
48 </div> 47 </div>
49 </body> 48 </body>
50 </html> 49 </html>
OLDNEW
« no previous file with comments | « content/test/data/gpu/pixel_scissor.html ('k') | content/test/data/gpu/pixel_video_vp9.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698