test_bug1094930.html (847B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1094930 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1094930</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <iframe id="ifr"></iframe> 12 </head> 13 <body> 14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1094930">Mozilla Bug 1094930</a> 15 <p id="display"></p> 16 <script type="application/javascript"> 17 SimpleTest.waitForExplicitFinish(); 18 class XFoo extends frames[0].HTMLElement { 19 connectedCallback() { 20 ok(true, "connectedCallback was called"); 21 SimpleTest.finish(); 22 } 23 }; 24 25 customElements.define.call(frames[0].customElements, "x-foo", XFoo); 26 frames[0].document.firstChild.appendChild(new XFoo()); 27 </script> 28 </body> 29 </html>