REGRESSION (r244995): Assertion failure when addEventListener to an SVGElement which...
[WebKit-https.git] / LayoutTests / svg / custom / add-event-listener-shadow-tree-element.html
1 <html>
2 <body onload=test()>
3    <svg>
4         <def>
5             <rect id="rect" width="100" height="100" fill="red"/>
6         </def>
7         <use id="use1" href="#rect"/>
8         <use id="use2" href="#use1"/>
9         <text y="120">PASS if it doesn't assert in debug builds.</text>
10     </svg>
11     <script>
12         function eventhandler() {
13             rect.setAttribute("fill", "green");
14             if (window.testRunner)
15                 testRunner.notifyDone();
16         }
17         function test() {
18             if (window.testRunner) {
19                 testRunner.dumpAsText();
20                 testRunner.waitUntilDone();
21             }
22             use1.setAttribute("onfocusin", "eventhandler()");
23             use1.focus();
24         }
25     </script>
26 </body>
27 </html>