diff --git a/test/compiler/set-in-observe/_config.js b/test/compiler/set-in-observe/_config.js new file mode 100644 index 0000000000..81c02623cd --- /dev/null +++ b/test/compiler/set-in-observe/_config.js @@ -0,0 +1,14 @@ +export default { + html: ` +
1
+2
+ `, + + test ( assert, component, target ) { + component.set({ foo: 2 }); + assert.htmlEqual( target.innerHTML, ` +2
+4
+ ` ); + } +}; diff --git a/test/compiler/set-in-observe/main.html b/test/compiler/set-in-observe/main.html new file mode 100644 index 0000000000..813954511c --- /dev/null +++ b/test/compiler/set-in-observe/main.html @@ -0,0 +1,16 @@ +{{foo}}
+{{bar}}
+ + diff --git a/test/compiler/set-in-onrender/_config.js b/test/compiler/set-in-onrender/_config.js new file mode 100644 index 0000000000..1eb52e9522 --- /dev/null +++ b/test/compiler/set-in-onrender/_config.js @@ -0,0 +1,3 @@ +export default { + html: '2
' +}; diff --git a/test/compiler/set-in-onrender/main.html b/test/compiler/set-in-onrender/main.html new file mode 100644 index 0000000000..63b72a1383 --- /dev/null +++ b/test/compiler/set-in-onrender/main.html @@ -0,0 +1,13 @@ +{{foo}}
+ +