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 @@ + + +