| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/repaint/resources/repaint.js"></script> | 4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 5 </head> | 5 </head> |
| 6 <!-- Test for WK108429: All red should disappear, leaving just a green square. -
-> | 6 <!-- Test for WK108429: All red should disappear, leaving just a green square. -
-> |
| 7 <body onload="runRepaintTest()"> | 7 <body onload="runRepaintAndPixelTest()"> |
| 8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="400" height="400"> | 8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="400" height="400"> |
| 9 <svg> | 9 <svg> |
| 10 <rect x="0" y="0" width="100" height="100" fill="green"/> | 10 <rect x="0" y="0" width="100" height="100" fill="green"/> |
| 11 <path id="path" d="M0 0 L 100 0 L 100 100 L 0 100Z" fill="red"/> | 11 <path id="path" d="M0 0 L 100 0 L 100 100 L 0 100Z" fill="red"/> |
| 12 </svg> | 12 </svg> |
| 13 <script> | 13 <script> |
| 14 function repaintTest() { | 14 function repaintTest() { |
| 15 if (window.testRunner) | 15 if (window.testRunner) |
| 16 testRunner.waitUntilDone(); | 16 testRunner.waitUntilDone(); |
| 17 | 17 |
| 18 setTimeout(function() { | 18 setTimeout(function() { |
| 19 var pathEl = document.getElementById('path'); | 19 var pathEl = document.getElementById('path'); |
| 20 pathEl.setAttribute('d', 'M0 0Z'); | 20 pathEl.setAttribute('d', 'M0 0Z'); |
| 21 if (window.testRunner) | 21 if (window.testRunner) |
| 22 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
| 23 }, 1); | 23 }, 1); |
| 24 } | 24 } |
| 25 </script> | 25 </script> |
| 26 </svg> | 26 </svg> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |