From 022a1d1b10dc8e4a5fb92b038e7a5da814e74bf6 Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Thu, 13 Oct 2022 21:01:30 +0800 Subject: [PATCH] remove unnecessary test --- .../samples/inline-style-directive-important/_config.js | 8 ++------ .../samples/inline-style-directive-important/main.svelte | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/test/runtime-puppeteer/samples/inline-style-directive-important/_config.js b/test/runtime-puppeteer/samples/inline-style-directive-important/_config.js index d4678a0a49..d6323b82e3 100644 --- a/test/runtime-puppeteer/samples/inline-style-directive-important/_config.js +++ b/test/runtime-puppeteer/samples/inline-style-directive-important/_config.js @@ -1,13 +1,11 @@ export default { html: `

hello

-

hello

hello

`, ssrHtml: `

hello

-

hello

hello

`, @@ -15,12 +13,10 @@ export default { const h1s = target.querySelectorAll('h1'); assert.equal(window.getComputedStyle(h1s[0])['backgroundColor'], 'rgb(0, 0, 255)'); - assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'rgb(0, 0, 255)'); - assert.equal(window.getComputedStyle(h1s[2])['backgroundColor'], 'rgb(255, 0, 0)'); + assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'rgb(255, 0, 0)'); component.color = 'yellow'; assert.equal(window.getComputedStyle(h1s[0])['backgroundColor'], 'rgb(0, 0, 255)'); - assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'rgb(0, 0, 255)'); - assert.equal(window.getComputedStyle(h1s[2])['backgroundColor'], 'rgb(255, 255, 0)'); + assert.equal(window.getComputedStyle(h1s[1])['backgroundColor'], 'rgb(255, 255, 0)'); } }; diff --git a/test/runtime-puppeteer/samples/inline-style-directive-important/main.svelte b/test/runtime-puppeteer/samples/inline-style-directive-important/main.svelte index 923628f4b4..e869a9a473 100644 --- a/test/runtime-puppeteer/samples/inline-style-directive-important/main.svelte +++ b/test/runtime-puppeteer/samples/inline-style-directive-important/main.svelte @@ -3,7 +3,6 @@

hello

-

hello

hello