diff --git a/test/runtime/samples/component-slot-if-block-before-node/Nested.html b/test/runtime/samples/component-slot-if-block-before-node/Nested.html new file mode 100644 index 0000000000..8213363fa0 --- /dev/null +++ b/test/runtime/samples/component-slot-if-block-before-node/Nested.html @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/test/runtime/samples/component-slot-if-block-before-node/_config.js b/test/runtime/samples/component-slot-if-block-before-node/_config.js new file mode 100644 index 0000000000..42f84d612d --- /dev/null +++ b/test/runtime/samples/component-slot-if-block-before-node/_config.js @@ -0,0 +1,17 @@ +export default { + solo: true, + html: ` +
+

unconditional

+
`, + + test(assert, component, target) { + component.set({ foo: true }); + assert.htmlEqual(target.innerHTML, ` +
+

conditional

+

unconditional

+
+ `); + } +}; diff --git a/test/runtime/samples/component-slot-if-block-before-node/main.html b/test/runtime/samples/component-slot-if-block-before-node/main.html new file mode 100644 index 0000000000..df5fe9375d --- /dev/null +++ b/test/runtime/samples/component-slot-if-block-before-node/main.html @@ -0,0 +1,17 @@ + + {{#if foo}} +

conditional

+ {{/if}} + +

unconditional

+
+ + \ No newline at end of file