diff --git a/test/runtime-puppeteer/samples/binding-width-height-initialize/_config.js b/test/runtime-puppeteer/samples/binding-width-height-initialize/_config.js new file mode 100644 index 0000000000..d67299ad56 --- /dev/null +++ b/test/runtime-puppeteer/samples/binding-width-height-initialize/_config.js @@ -0,0 +1,6 @@ +export default { + async test({ assert, component }) { + assert.equal(component.toggle, true); + assert.equal(component.offsetHeight, 800); + } +}; diff --git a/test/runtime-puppeteer/samples/binding-width-height-initialize/main.svelte b/test/runtime-puppeteer/samples/binding-width-height-initialize/main.svelte new file mode 100644 index 0000000000..6136365a1d --- /dev/null +++ b/test/runtime-puppeteer/samples/binding-width-height-initialize/main.svelte @@ -0,0 +1,18 @@ + + +
+
{offsetHeight}
+
+ + diff --git a/test/runtime/samples/binding-width-height-initialize/_config.js b/test/runtime/samples/binding-width-height-initialize/_config.js deleted file mode 100644 index ed6ac0097a..0000000000 --- a/test/runtime/samples/binding-width-height-initialize/_config.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - async test({ assert, target }) { - assert.htmlEqual(target.querySelector('.description').innerHTML, 'width:200, height:100'); - } -}; diff --git a/test/runtime/samples/binding-width-height-initialize/main.svelte b/test/runtime/samples/binding-width-height-initialize/main.svelte deleted file mode 100644 index 95a04ebb47..0000000000 --- a/test/runtime/samples/binding-width-height-initialize/main.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - -
-
-
width:{offsetWidth}, height:{offsetHeight}
-
-
- -