diff --git a/test/runtime/samples/onstate-before-render/_config.js b/test/runtime/samples/onstate-before-render/_config.js new file mode 100644 index 0000000000..56e30077bd --- /dev/null +++ b/test/runtime/samples/onstate-before-render/_config.js @@ -0,0 +1,14 @@ +import order from './order.js'; + +export default { + 'skip-ssr': true, + + test(assert, component, target) { + assert.deepEqual(order, [ + 'onstate', + 'render', + 'oncreate', + 'onupdate' + ]); + } +}; diff --git a/test/runtime/samples/onstate-before-render/main.html b/test/runtime/samples/onstate-before-render/main.html new file mode 100644 index 0000000000..572275268c --- /dev/null +++ b/test/runtime/samples/onstate-before-render/main.html @@ -0,0 +1,26 @@ +{identity(42)} + + \ No newline at end of file diff --git a/test/runtime/samples/onstate-before-render/order.js b/test/runtime/samples/onstate-before-render/order.js new file mode 100644 index 0000000000..109fa8b38c --- /dev/null +++ b/test/runtime/samples/onstate-before-render/order.js @@ -0,0 +1 @@ +export default []; \ No newline at end of file