From e087d08880d286ed8fc140354a18d9c2ee0bbe84 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 6 Jun 2018 18:00:43 -0400 Subject: [PATCH] failing test for #1522 --- .../samples/onstate-before-render/_config.js | 14 ++++++++++ .../samples/onstate-before-render/main.html | 26 +++++++++++++++++++ .../samples/onstate-before-render/order.js | 1 + 3 files changed, 41 insertions(+) create mode 100644 test/runtime/samples/onstate-before-render/_config.js create mode 100644 test/runtime/samples/onstate-before-render/main.html create mode 100644 test/runtime/samples/onstate-before-render/order.js 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