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

Side by Side Diff: content/test/data/gpu/pixel_css3d.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
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 19 matching lines...) Expand all
30 var g_swapsBeforeAck = 15; 30 var g_swapsBeforeAck = 15;
31 31
32 function main() 32 function main()
33 { 33 {
34 waitForFinish(); 34 waitForFinish();
35 } 35 }
36 36
37 function waitForFinish() 37 function waitForFinish()
38 { 38 {
39 if (g_swapsBeforeAck == 0) { 39 if (g_swapsBeforeAck == 0) {
40 domAutomationController.setAutomationId(1);
41 domAutomationController.send("SUCCESS"); 40 domAutomationController.send("SUCCESS");
42 } else { 41 } else {
43 g_swapsBeforeAck--; 42 g_swapsBeforeAck--;
44 document.getElementById('blue_box').style.zIndex = g_swapsBeforeAck + 1; 43 document.getElementById('blue_box').style.zIndex = g_swapsBeforeAck + 1;
45 window.requestAnimationFrame(waitForFinish); 44 window.requestAnimationFrame(waitForFinish);
46 } 45 }
47 } 46 }
48 </script> 47 </script>
49 </head> 48 </head>
50 <body onload="main()"> 49 <body onload="main()">
51 <div style="position:relative; width:200px; height:200px; background-color:black ; zindex-0"> 50 <div style="position:relative; width:200px; height:200px; background-color:black ; zindex-0">
52 </div> 51 </div>
53 <div id="container" style="position:absolute; top:0px; left:0px"> 52 <div id="container" style="position:absolute; top:0px; left:0px">
54 <div id="blue_box"></div> 53 <div id="blue_box"></div>
55 </div> 54 </div>
56 </body> 55 </body>
57 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698