From 1e1f020ba2e5efce8550063c60de0cea687d29d8 Mon Sep 17 00:00:00 2001 From: Nayan Gautam Date: Thu, 16 Jun 2022 09:52:25 +0000 Subject: [PATCH] Remove unused test Runtime test doesn't work because of weird behaviour of computed style the puppeteer test should cover it --- .../_config.js | 26 ------------------- .../main.svelte | 13 ---------- 2 files changed, 39 deletions(-) delete mode 100644 test/runtime/samples/inline-style-directive-important/_config.js delete mode 100644 test/runtime/samples/inline-style-directive-important/main.svelte diff --git a/test/runtime/samples/inline-style-directive-important/_config.js b/test/runtime/samples/inline-style-directive-important/_config.js deleted file mode 100644 index ce71be300d..0000000000 --- a/test/runtime/samples/inline-style-directive-important/_config.js +++ /dev/null @@ -1,26 +0,0 @@ -export default { - html: ` -

hello

-

hello

-

hello

- `, - - ssrHtml: ` -

hello

-

hello

-

hello

- `, - skip: true, - test({ assert, target, window, component }) { - const h1s = target.querySelectorAll('h1'); - - assert.equal(window.getComputedStyle(h1s[0])['backgroundColor'], 'blue'); // TODO: This should be blue but ends up being red - assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'blue'); - assert.equal(window.getComputedStyle(h1s[2])['backgroundColor'], 'red'); - - component.color = 'yellow'; - assert.equal(window.getComputedStyle(h1s[0])['backgroundColor'], 'blue'); - assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'blue'); - assert.equal(window.getComputedStyle(h1s[2])['backgroundColor'], 'yellow'); - } -}; diff --git a/test/runtime/samples/inline-style-directive-important/main.svelte b/test/runtime/samples/inline-style-directive-important/main.svelte deleted file mode 100644 index 923628f4b4..0000000000 --- a/test/runtime/samples/inline-style-directive-important/main.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - -

hello

-

hello

-

hello

- - \ No newline at end of file