| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |