| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css"> | |
| 5 .nomargin { | |
| 6 margin: 0px auto; | |
| 7 } | |
| 8 </style> | |
| 9 <script> | 4 <script> |
| 10 // This browser pixel test checks if the 2D canvas is properly displayed | 5 // This browser pixel test checks if the 2D canvas is properly displayed |
| 11 // when the color space is set to linear-rgb. | 6 // when the color space is set to linear-rgb. |
| 12 | 7 |
| 13 var g_swapsBeforeAck = 15; | 8 var g_swapsBeforeAck = 15; |
| 14 | 9 |
| 15 function main() | 10 function main() |
| 16 { | 11 { |
| 17 draw(); | 12 draw(); |
| 18 waitForFinish(); | 13 waitForFinish(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 domAutomationController.send("SUCCESS"); | 33 domAutomationController.send("SUCCESS"); |
| 39 } else { | 34 } else { |
| 40 g_swapsBeforeAck--; | 35 g_swapsBeforeAck--; |
| 41 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 36 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
| 42 window.webkitRequestAnimationFrame(waitForFinish); | 37 window.webkitRequestAnimationFrame(waitForFinish); |
| 43 } | 38 } |
| 44 } | 39 } |
| 45 </script> | 40 </script> |
| 46 </head> | 41 </head> |
| 47 <body onload="main()"> | 42 <body onload="main()"> |
| 48 <div style="position:relative; width:300px; height:300px; background-color:white
"> | |
| 49 </div> | |
| 50 <div id="container" style="position:absolute; top:0px; left:0px"> | 43 <div id="container" style="position:absolute; top:0px; left:0px"> |
| 51 <canvas id="c" width="200" height="200" class="nomargin"></canvas> | 44 <canvas id="c" width="140" height="140"></canvas> |
| 52 </div> | 45 </div> |
| 53 </body> | 46 </body> |
| 54 </html> | 47 </html> |
| OLD | NEW |