From 9977762dd042e7aae912d4eb76481f355caa8598 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 6 Jul 2017 10:24:12 -0400 Subject: [PATCH] add test --- .../samples/bindings-before-oncreate/One.html | 15 +++++++++++++++ .../samples/bindings-before-oncreate/Two.html | 15 +++++++++++++++ .../samples/bindings-before-oncreate/_config.js | 5 +++++ .../samples/bindings-before-oncreate/main.html | 9 +++++++++ .../Nested.html | 0 .../Visibility.html | 0 .../_config.js | 0 .../counter.js | 0 .../main.html | 0 9 files changed, 44 insertions(+) create mode 100644 test/runtime/samples/bindings-before-oncreate/One.html create mode 100644 test/runtime/samples/bindings-before-oncreate/Two.html create mode 100644 test/runtime/samples/bindings-before-oncreate/_config.js create mode 100644 test/runtime/samples/bindings-before-oncreate/main.html rename test/runtime/samples/{oncreate-before-bindings => flush-before-bindings}/Nested.html (100%) rename test/runtime/samples/{oncreate-before-bindings => flush-before-bindings}/Visibility.html (100%) rename test/runtime/samples/{oncreate-before-bindings => flush-before-bindings}/_config.js (100%) rename test/runtime/samples/{oncreate-before-bindings => flush-before-bindings}/counter.js (100%) rename test/runtime/samples/{oncreate-before-bindings => flush-before-bindings}/main.html (100%) diff --git a/test/runtime/samples/bindings-before-oncreate/One.html b/test/runtime/samples/bindings-before-oncreate/One.html new file mode 100644 index 0000000000..3a1ff8a008 --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate/One.html @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/test/runtime/samples/bindings-before-oncreate/Two.html b/test/runtime/samples/bindings-before-oncreate/Two.html new file mode 100644 index 0000000000..f6fc00fcaf --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate/Two.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/test/runtime/samples/bindings-before-oncreate/_config.js b/test/runtime/samples/bindings-before-oncreate/_config.js new file mode 100644 index 0000000000..e9e09c678d --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate/_config.js @@ -0,0 +1,5 @@ +export default { + test(assert, component) { + assert.equal(component.refs.one.snapshot, 2); + } +}; \ No newline at end of file diff --git a/test/runtime/samples/bindings-before-oncreate/main.html b/test/runtime/samples/bindings-before-oncreate/main.html new file mode 100644 index 0000000000..02746ecc51 --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate/main.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/test/runtime/samples/oncreate-before-bindings/Nested.html b/test/runtime/samples/flush-before-bindings/Nested.html similarity index 100% rename from test/runtime/samples/oncreate-before-bindings/Nested.html rename to test/runtime/samples/flush-before-bindings/Nested.html diff --git a/test/runtime/samples/oncreate-before-bindings/Visibility.html b/test/runtime/samples/flush-before-bindings/Visibility.html similarity index 100% rename from test/runtime/samples/oncreate-before-bindings/Visibility.html rename to test/runtime/samples/flush-before-bindings/Visibility.html diff --git a/test/runtime/samples/oncreate-before-bindings/_config.js b/test/runtime/samples/flush-before-bindings/_config.js similarity index 100% rename from test/runtime/samples/oncreate-before-bindings/_config.js rename to test/runtime/samples/flush-before-bindings/_config.js diff --git a/test/runtime/samples/oncreate-before-bindings/counter.js b/test/runtime/samples/flush-before-bindings/counter.js similarity index 100% rename from test/runtime/samples/oncreate-before-bindings/counter.js rename to test/runtime/samples/flush-before-bindings/counter.js diff --git a/test/runtime/samples/oncreate-before-bindings/main.html b/test/runtime/samples/flush-before-bindings/main.html similarity index 100% rename from test/runtime/samples/oncreate-before-bindings/main.html rename to test/runtime/samples/flush-before-bindings/main.html