| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 div { | 4 div { |
| 5 width:600px; | 5 width:600px; |
| 6 height:500px; | 6 height:500px; |
| 7 border:2px solid black; | 7 border:2px solid black; |
| 8 content: -webkit-canvas(squares); | 8 content: -webkit-canvas(squares); |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 <script src="resources/repaint.js"></script> | 11 <script src="../../resources/run-after-display.js"></script> |
| 12 <script type="application/x-javascript"> | 12 <script type="application/x-javascript"> |
| 13 if (window.testRunner) { |
| 14 testRunner.dumpAsTextWithPixelResults(); |
| 15 testRunner.waitUntilDone(); |
| 16 } |
| 13 function repaintTest() | 17 function repaintTest() |
| 14 { | 18 { |
| 15 var ctx = document.getCSSCanvasContext("2d", "squares", 300, 300); | 19 var ctx = document.getCSSCanvasContext("2d", "squares", 300, 300); |
| 16 | 20 |
| 17 ctx.fillStyle = "rgb(200,0,0)"; | 21 ctx.fillStyle = "rgb(200,0,0)"; |
| 18 ctx.fillRect (10, 10, 100, 100); | 22 ctx.fillRect (10, 10, 100, 100); |
| 19 | 23 |
| 20 ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; | 24 ctx.fillStyle = "rgba(0, 0, 200, 0.5)"; |
| 21 ctx.fillRect (50, 50, 100, 100); | 25 ctx.fillRect (50, 50, 100, 100); |
| 26 if (window.testRunner) |
| 27 testRunner.notifyDone(); |
| 22 } | 28 } |
| 23 </script> | 29 </script> |
| 24 </head> | 30 </head> |
| 25 <body onload="runRepaintTest()"> | 31 <body onload="runAfterDisplay(repaintTest)"> |
| 26 <div></div> | 32 <div></div> |
| 27 </body> | 33 </body> |
| 28 </html> | 34 </html> |
| OLD | NEW |