| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 <script src="../../fast/repaint/resources/repaint.js"></script> | 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 4 <title><br> prevents click handler from firing</title> | 4 <title><br> prevents click handler from firing</title> |
| 5 <script> | 5 <script> |
| 6 function clickHandler(evt) { | 6 function clickHandler(evt) { |
| 7 evt.target.style.fill = "green"; | 7 evt.target.style.fill = "green"; |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.notifyDone(); | 9 testRunner.notifyDone(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function repaintTest() { | 12 function repaintTest() { |
| 13 if (window.eventSender) { | 13 if (window.eventSender) { |
| 14 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
| 15 eventSender.mouseMoveTo(50, 80); | 15 eventSender.mouseMoveTo(50, 80); |
| 16 eventSender.mouseDown(); | 16 eventSender.mouseDown(); |
| 17 eventSender.mouseUp(); | 17 eventSender.mouseUp(); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 </script> | 20 </script> |
| 21 </head> | 21 </head> |
| 22 <body onload="runRepaintTest()"> | 22 <body onload="runRepaintAndPixelTest()"> |
| 23 <p> | 23 <p> |
| 24 A test for hit testing when an svg container is relatively positioned in | 24 A test for hit testing when an svg container is relatively positioned in |
| 25 a containing block. See bug 13981. | 25 a containing block. See bug 13981. |
| 26 </p> | 26 </p> |
| 27 <br /> | 27 <br /> |
| 28 <svg xmlns="http://www.w3.org/2000/svg" width="720" height="15"> | 28 <svg xmlns="http://www.w3.org/2000/svg" width="720" height="15"> |
| 29 <rect width="720" height="15" onclick="clickHandler(evt)" /> | 29 <rect width="720" height="15" onclick="clickHandler(evt)" /> |
| 30 </svg> | 30 </svg> |
| 31 </body> | 31 </body> |
| 32 </html> | 32 </html> |
| OLD | NEW |