pull/7610/head
Nayan Gautam 4 years ago committed by gtmnayan
parent ef4bb348b9
commit ffaf90aef9

@ -4,17 +4,17 @@ export default {
`,
test({ assert, target, window, component }) {
const p = target.querySelector("p");
const p = target.querySelector('p');
const styles = window.getComputedStyle(p);
assert.equal(styles.color, "rgb(255, 0, 0)");
assert.equal(styles.fontSize, "32px");
assert.equal(styles.color, 'rgb(255, 0, 0)');
assert.equal(styles.fontSize, '32px');
component.foo = "font-size: 50px; color: green;"; // Update style attribute
component.foo = 'font-size: 50px; color: green;'; // Update style attribute
{
const p = target.querySelector("p");
const p = target.querySelector('p');
const styles = window.getComputedStyle(p);
assert.equal(styles.color, "rgb(255, 0, 0)");
assert.equal(styles.fontSize, "32px");
assert.equal(styles.color, 'rgb(255, 0, 0)');
assert.equal(styles.fontSize, '32px');
}
}
},
};

@ -4,9 +4,9 @@ export default {
`,
test({ assert, target, window }) {
const p = target.querySelector("p");
const p = target.querySelector('p');
const styles = window.getComputedStyle(p);
assert.equal(styles.color, "red");
assert.equal(styles.height, "40px");
},
assert.equal(styles.color, 'red');
assert.equal(styles.height, '40px');
}
};

Loading…
Cancel
Save