| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html lang="en"> | 2 <html lang="en"> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 5 <title>Canvas Incremental Repaint</title> | 5 <title>Canvas Incremental Repaint</title> |
| 6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
| 7 canvas { | 7 canvas { |
| 8 width: 200px; | 8 width: 200px; |
| 9 height: 150px; | 9 height: 150px; |
| 10 border: 20px solid black; | 10 border: 20px solid black; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 <script type="text/javascript" charset="utf-8"> | 13 <script type="text/javascript" charset="utf-8"> |
| 14 | 14 |
| 15 if (window.testRunner) { | 15 if (window.testRunner) { |
| 16 testRunner.dumpAsText(true); | 16 testRunner.dumpAsTextWithPixelResults(); |
| 17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 function runRepaintTest() | 20 function runRepaintTest() |
| 21 { | 21 { |
| 22 if (window.testRunner) { | 22 if (window.testRunner) { |
| 23 document.body.offsetTop; | 23 document.body.offsetTop; |
| 24 testRunner.display(); | 24 testRunner.display(); |
| 25 repaintTest(); | 25 repaintTest(); |
| 26 testRunner.notifyDone(); | 26 testRunner.notifyDone(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 43 ctx.fillRect(0, 100, 200, 80); | 43 ctx.fillRect(0, 100, 200, 80); |
| 44 ctx.restore(); | 44 ctx.restore(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 </script> | 47 </script> |
| 48 </head> | 48 </head> |
| 49 <body onload="runRepaintTest()"> | 49 <body onload="runRepaintTest()"> |
| 50 <canvas id="canvas1"></canvas> | 50 <canvas id="canvas1"></canvas> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |