From 05a270a3c753022c776a0d18529f82a09c6c52d1 Mon Sep 17 00:00:00 2001 From: Yury Zhuravlev Date: Fri, 21 Jul 2017 10:52:19 +0900 Subject: [PATCH] Add test case for gh-714 situation. --- .../One.html | 20 +++++++++++++++++++ .../Two.html | 15 ++++++++++++++ .../_config.js | 5 +++++ .../main.html | 9 +++++++++ 4 files changed, 49 insertions(+) create mode 100644 test/runtime/samples/bindings-before-oncreate-change-dom/One.html create mode 100644 test/runtime/samples/bindings-before-oncreate-change-dom/Two.html create mode 100644 test/runtime/samples/bindings-before-oncreate-change-dom/_config.js create mode 100644 test/runtime/samples/bindings-before-oncreate-change-dom/main.html diff --git a/test/runtime/samples/bindings-before-oncreate-change-dom/One.html b/test/runtime/samples/bindings-before-oncreate-change-dom/One.html new file mode 100644 index 000000000000..f0f5b8a05109 --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate-change-dom/One.html @@ -0,0 +1,20 @@ + +

+ + \ No newline at end of file diff --git a/test/runtime/samples/bindings-before-oncreate-change-dom/Two.html b/test/runtime/samples/bindings-before-oncreate-change-dom/Two.html new file mode 100644 index 000000000000..f6fc00fcaf7b --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate-change-dom/Two.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/test/runtime/samples/bindings-before-oncreate-change-dom/_config.js b/test/runtime/samples/bindings-before-oncreate-change-dom/_config.js new file mode 100644 index 000000000000..e9e09c678d9b --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate-change-dom/_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-change-dom/main.html b/test/runtime/samples/bindings-before-oncreate-change-dom/main.html new file mode 100644 index 000000000000..02746ecc5116 --- /dev/null +++ b/test/runtime/samples/bindings-before-oncreate-change-dom/main.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file