summaryrefslogtreecommitdiffstats
path: root/dom/base/test/chrome/custom_element_ep.js
blob: d933ecbbabb857d54cbd0558189ae9666eea9603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* globals finishTest */
class XFoo extends HTMLElement {
  constructor() {
    super();
    this.magicNumber = 42;
  }

  connectedCallback() {
    finishTest(this.magicNumber === 42);
  }
}
customElements.define("x-foo", XFoo);

document.firstChild.appendChild(document.createElement("x-foo"));