| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 "http://www.w3.org/TR/html4/strict.dtd"> | 2 "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script src="resources/repaint.js"></script> | 5 <script src="resources/repaint.js"></script> |
| 6 <script> | 6 <script> |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(true); | 8 testRunner.dumpAsTextWithPixelResults(); |
| 9 | 9 |
| 10 function repaintTest() | 10 function repaintTest() |
| 11 { | 11 { |
| 12 var canvas = document.getElementById('c1'); | 12 var canvas = document.getElementById('c1'); |
| 13 var offset = document.body.offsetLeft; // Forces layout | 13 var offset = document.body.offsetLeft; // Forces layout |
| 14 canvas.width = canvas.width; // Should wipe canvas clean | 14 canvas.width = canvas.width; // Should wipe canvas clean |
| 15 } | 15 } |
| 16 </script> | 16 </script> |
| 17 </head> | 17 </head> |
| 18 <body onload="runRepaintTest();"> | 18 <body onload="runRepaintTest();"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 var canvas = document.getElementById('c1'); | 32 var canvas = document.getElementById('c1'); |
| 33 var ctx = canvas.getContext('2d'); | 33 var ctx = canvas.getContext('2d'); |
| 34 ctx.fillStyle = '#0f0'; | 34 ctx.fillStyle = '#0f0'; |
| 35 ctx.fillRect(0, 0, 100, 50); | 35 ctx.fillRect(0, 0, 100, 50); |
| 36 | 36 |
| 37 </script> | 37 </script> |
| 38 | 38 |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |