| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body style="margin: 0px; padding: 0px;" onload="runRepaintTest()"> | 3 <body style="margin: 0px; padding: 0px;" onload="runRepaintTest()"> |
| 4 <div style="width: 100px; height: 100px;"></div> | 4 <div style="width: 100px; height: 100px;"></div> |
| 5 <svg id="svg1" xmlns="http://www.w3.org/2000/svg" width="400" height="400"> | 5 <svg id="svg1" xmlns="http://www.w3.org/2000/svg" width="400" height="400"> |
| 6 <rect width="100" height="100" fill="green"/> | 6 <rect width="100" height="100" fill="green"/> |
| 7 <svg id="svg2" x="100" y="100" width="300" height="300"> | 7 <svg id="svg2" x="100" y="100" width="300" height="300"> |
| 8 <rect width="100" height="100" fill="green"/> | 8 <rect width="100" height="100" fill="green"/> |
| 9 <svg id="svg3" x="100" y="100" width="200" height="200"> | 9 <svg id="svg3" x="100" y="100" width="200" height="200"> |
| 10 <rect width="100" height="100" fill="green"/> | 10 <rect width="100" height="100" fill="green"/> |
| 11 <svg id="svg4" x="100" y="100" width="100" height="100"> | 11 <svg id="svg4" x="100" y="100" width="100" height="100"> |
| 12 <rect width="100" height="100" fill="green"/> | 12 <rect width="100" height="100" fill="green"/> |
| 13 </svg> | 13 </svg> |
| 14 </svg> | 14 </svg> |
| 15 </svg> | 15 </svg> |
| 16 </svg> | 16 </svg> |
| 17 | 17 |
| 18 <script> | 18 <script> |
| 19 var zoomCount = 2; | 19 var zoomCount = 2; |
| 20 | 20 |
| 21 window.jsTestIsAsync = true; |
| 21 if (window.testRunner) { | 22 if (window.testRunner) { |
| 22 testRunner.waitUntilDone(); | 23 testRunner.waitUntilDone(); |
| 23 window.postZoomCallback = executeTest; | 24 window.postZoomCallback = executeTest; |
| 24 } | 25 } |
| 25 | 26 |
| 26 function ctmToString(ctm) { | 27 function ctmToString(ctm) { |
| 27 return [ ctm.a, ctm.b, ctm.c, ctm.d, ctm.e, ctm.f ].join(', '); | 28 return [ ctm.a, ctm.b, ctm.c, ctm.d, ctm.e, ctm.f ].join(', '); |
| 28 } | 29 } |
| 29 | 30 |
| 30 function executeTest() { | 31 function executeTest() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 42 debug(''); | 43 debug(''); |
| 43 } | 44 } |
| 44 | 45 |
| 45 </script> | 46 </script> |
| 46 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 47 <script src="../../../fast/js/resources/js-test-pre.js"></script> |
| 47 <script src="../../../fast/repaint/resources/repaint.js"></script> | 48 <script src="../../../fast/repaint/resources/repaint.js"></script> |
| 48 <script src="../resources/testPageZoom.js"></script> | 49 <script src="../resources/testPageZoom.js"></script> |
| 49 | 50 |
| 50 </body> | 51 </body> |
| 51 </html> | 52 </html> |
| OLD | NEW |