Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / mochitest / test_bug1094930.html
blobd303bf2495bb459fadf2d660a4571456d1e569c5
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();
25 customElements.define.call(frames[0].customElements, "x-foo", XFoo);
26 frames[0].document.firstChild.appendChild(new XFoo());
27 </script>
28 </body>
29 </html>