From fd22a7ad1f134b3ad9627fa937f7125994a94413 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:42:30 +0200 Subject: [PATCH] make this a runtime test --- .../inline-style-directive-update-object-property/_config.js | 4 ++-- .../inline-style-directive-update-object-property/main.svelte | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/svelte/test/{runtime-browser => runtime}/samples/inline-style-directive-update-object-property/_config.js (78%) rename packages/svelte/test/{runtime-browser => runtime}/samples/inline-style-directive-update-object-property/main.svelte (100%) diff --git a/packages/svelte/test/runtime-browser/samples/inline-style-directive-update-object-property/_config.js b/packages/svelte/test/runtime/samples/inline-style-directive-update-object-property/_config.js similarity index 78% rename from packages/svelte/test/runtime-browser/samples/inline-style-directive-update-object-property/_config.js rename to packages/svelte/test/runtime/samples/inline-style-directive-update-object-property/_config.js index b926ae6ad9..e3c6d72cd1 100644 --- a/packages/svelte/test/runtime-browser/samples/inline-style-directive-update-object-property/_config.js +++ b/packages/svelte/test/runtime/samples/inline-style-directive-update-object-property/_config.js @@ -6,14 +6,14 @@ export default { test({ assert, target, window, component }) { const p = target.querySelector('p'); const styles = window.getComputedStyle(p); - assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)'); + assert.equal(styles.backgroundColor, 'green'); assert.equal(styles.fontSize, '12px'); { component.modify = true; const p = target.querySelector('p'); const styles = window.getComputedStyle(p); - assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)'); + assert.equal(styles.backgroundColor, 'green'); assert.equal(styles.fontSize, '50px'); } } diff --git a/packages/svelte/test/runtime-browser/samples/inline-style-directive-update-object-property/main.svelte b/packages/svelte/test/runtime/samples/inline-style-directive-update-object-property/main.svelte similarity index 100% rename from packages/svelte/test/runtime-browser/samples/inline-style-directive-update-object-property/main.svelte rename to packages/svelte/test/runtime/samples/inline-style-directive-update-object-property/main.svelte