make this a runtime test

pull/9187/head
Simon H 3 years ago committed by GitHub
parent f023578b49
commit fd22a7ad1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,14 +6,14 @@ export default {
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.backgroundColor, 'rgb(0, 128, 0)'); assert.equal(styles.backgroundColor, 'green');
assert.equal(styles.fontSize, '12px'); assert.equal(styles.fontSize, '12px');
{ {
component.modify = true; component.modify = true;
const p = target.querySelector('p'); const p = target.querySelector('p');
const styles = window.getComputedStyle(p); const styles = window.getComputedStyle(p);
assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)'); assert.equal(styles.backgroundColor, 'green');
assert.equal(styles.fontSize, '50px'); assert.equal(styles.fontSize, '50px');
} }
} }
Loading…
Cancel
Save