Revert changes to props test

pull/5139/head
Christopher Mardell 5 years ago
parent 8be9968e40
commit 61b596cee8

@ -9,22 +9,13 @@ export default async function (target) {
assert.equal(target.innerHTML, '<custom-element></custom-element>'); assert.equal(target.innerHTML, '<custom-element></custom-element>');
const el = target.querySelector('custom-element'); const el = target.querySelector('custom-element');
// await new Promise((resolve) => setTimeout(resolve, 100));
// await new Promise((resolve) => setTimeout(resolve, 100));
const widget = el.shadowRoot.querySelector('my-widget'); const widget = el.shadowRoot.querySelector('my-widget');
console.log(widget);
// await new Promise((resolve) => setTimeout(resolve, 100));
const [p1, p2] = widget.shadowRoot.querySelectorAll('p'); const [p1, p2] = widget.shadowRoot.querySelectorAll('p');
assert.equal(p1.textContent, '3 items'); assert.equal(p1.textContent, '3 items');
assert.equal(p2.textContent, 'a, b, c'); assert.equal(p2.textContent, 'a, b, c');
el.items = ['d', 'e', 'f', 'g', 'h']; el.items = ['d', 'e', 'f', 'g', 'h'];
assert.equal(p1.textContent, '5 items'); assert.equal(p1.textContent, '5 items');
assert.equal(p2.textContent, 'd, e, f, g, h'); assert.equal(p2.textContent, 'd, e, f, g, h');
} }

Loading…
Cancel
Save