mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
parent
31b26a24e3
commit
cedff6e214
28 changed files with 82 additions and 879 deletions
|
|
@ -15,15 +15,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1094930
|
|||
<p id="display"></p>
|
||||
<script type="application/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
var proto = {
|
||||
connectedCallback: function() {
|
||||
class XFoo extends frames[0].HTMLElement {
|
||||
connectedCallback() {
|
||||
ok(true, "connectedCallback was called");
|
||||
SimpleTest.finish()
|
||||
SimpleTest.finish();
|
||||
}
|
||||
};
|
||||
|
||||
var f = document.registerElement.call(frames[0].document, "x-foo", { prototype: proto });
|
||||
frames[0].document.firstChild.appendChild(new f());
|
||||
customElements.define.call(frames[0].customElements, "x-foo", XFoo);
|
||||
frames[0].document.firstChild.appendChild(new XFoo());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue