We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b67c45 + 6deb323 commit 6da0f02Copy full SHA for 6da0f02
spec/text-editor-component-spec.js
@@ -18,15 +18,15 @@ const SAMPLE_TEXT = fs.readFileSync(
18
'utf8'
19
);
20
21
-document.registerElement('text-editor-component-test-element', {
22
- prototype: Object.create(HTMLElement.prototype, {
23
- attachedCallback: {
24
- value: function() {
25
- this.didAttach();
26
- }
27
28
- })
29
-});
+class DummyElement extends HTMLElement {
+ connectedCallback() {
+ this.didAttach();
+ }
+}
+
+window.customElements.define('text-editor-component-test-element', DummyElement)
+document.createElement('text-editor-component-test-element')
30
31
const editors = [];
32
let verticalScrollbarWidth, horizontalScrollbarHeight;
0 commit comments