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

Side by Side Diff: content/test/data/gpu/pixel_background.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 <html> 1 <html>
2 <head> 2 <head>
3 <meta name="viewport" content="initial-scale=1"> 3 <meta name="viewport" content="initial-scale=1">
4 <title>Basic Rasterization Test: Blue Box over Black Background</title> 4 <title>Basic Rasterization Test: Blue Box over Black Background</title>
5 <style type="text/css"> 5 <style type="text/css">
6 body { 6 body {
7 margin: 0px; 7 margin: 0px;
8 padding: 0px; 8 padding: 0px;
9 background-color: green; 9 background-color: green;
10 } 10 }
(...skipping 16 matching lines...) Expand all
27 <script> 27 <script>
28 var g_swapsBeforeAck = 15; 28 var g_swapsBeforeAck = 15;
29 29
30 function main() { 30 function main() {
31 waitForFinish(); 31 waitForFinish();
32 } 32 }
33 33
34 function waitForFinish() 34 function waitForFinish()
35 { 35 {
36 if (g_swapsBeforeAck == 0) { 36 if (g_swapsBeforeAck == 0) {
37 domAutomationController.setAutomationId(1);
38 domAutomationController.send("SUCCESS"); 37 domAutomationController.send("SUCCESS");
39 } else { 38 } else {
40 g_swapsBeforeAck--; 39 g_swapsBeforeAck--;
41 document.getElementById('blue_box').style.zIndex = g_swapsBeforeAck + 1; 40 document.getElementById('blue_box').style.zIndex = g_swapsBeforeAck + 1;
42 window.requestAnimationFrame(waitForFinish); 41 window.requestAnimationFrame(waitForFinish);
43 } 42 }
44 } 43 }
45 </script> 44 </script>
46 </head> 45 </head>
47 46
48 <body onload="main()"> 47 <body onload="main()">
49 <div id="container"> 48 <div id="container">
50 <div id="blue_box"></div> 49 <div id="blue_box"></div>
51 </div> 50 </div>
52 </body> 51 </body>
53 </html> 52 </html>
OLDNEW
« no previous file with comments | « content/test/data/gpu/functional_video.html ('k') | content/test/data/gpu/pixel_browser_plugin.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698