From 274a0b3f6a83665eb0d7ed89977237eb21894e0d Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Fri, 14 Oct 2022 23:11:16 +0900 Subject: [PATCH] add more test --- .../samples/attribute-boolean-itemscope/_config.js | 11 +++++++++++ .../samples/attribute-boolean-itemscope/main.svelte | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 test/runtime/samples/attribute-boolean-itemscope/_config.js create mode 100644 test/runtime/samples/attribute-boolean-itemscope/main.svelte diff --git a/test/runtime/samples/attribute-boolean-itemscope/_config.js b/test/runtime/samples/attribute-boolean-itemscope/_config.js new file mode 100644 index 0000000000..b5b21cfc47 --- /dev/null +++ b/test/runtime/samples/attribute-boolean-itemscope/_config.js @@ -0,0 +1,11 @@ +export default { + props: { + itemscope: true + }, + test({ assert, target, component }) { + const div = target.querySelector('div'); + assert.ok(div.itemscope); + component.itemscope = false; + assert.ok(!div.itemscope); + } +}; diff --git a/test/runtime/samples/attribute-boolean-itemscope/main.svelte b/test/runtime/samples/attribute-boolean-itemscope/main.svelte new file mode 100644 index 0000000000..83265a983c --- /dev/null +++ b/test/runtime/samples/attribute-boolean-itemscope/main.svelte @@ -0,0 +1,5 @@ + + +