pull/7610/head
Nayan Gautam 4 years ago committed by gtmnayan
parent 696efae2d4
commit 3bec11a012

@ -2,16 +2,19 @@ export default {
html: ` html: `
<p style="height: 40px; color: red;"></p> <p style="height: 40px; color: red;"></p>
`, `,
solo: true,
test({ assert, target, window, component }) { test({ assert, target, window, component }) {
const p = target.querySelector("p"); const p = target.querySelector("p");
const styles = window.getComputedStyle(p); const styles = window.getComputedStyle(p);
assert.equal(styles.color, "red"); assert.equal(styles.color, "red");
assert.equal(styles.height, "40px"); assert.equal(styles.height, "40px");
component.color2 = "yellow"; component.color2 = "yellow";
const updated_styles = window.getComputedStyle(p); {
assert.equal(updated_styles.color, "red"); const p = target.querySelector("p");
const styles = window.getComputedStyle(p);
assert.equal(styles.color, "red");
}
}, },
}; };

Loading…
Cancel
Save