From c7265f72920a730875a04211dbeeaa2c1bb67139 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 29 Dec 2018 00:25:38 -0500 Subject: [PATCH] failing test for #1917 --- .../binding-input-text-const/_config.js | 26 +++++++++++++++++++ .../binding-input-text-const/main.html | 8 ++++++ 2 files changed, 34 insertions(+) create mode 100644 test/runtime/samples/binding-input-text-const/_config.js create mode 100644 test/runtime/samples/binding-input-text-const/main.html diff --git a/test/runtime/samples/binding-input-text-const/_config.js b/test/runtime/samples/binding-input-text-const/_config.js new file mode 100644 index 0000000000..f3f7abe086 --- /dev/null +++ b/test/runtime/samples/binding-input-text-const/_config.js @@ -0,0 +1,26 @@ +export default { + html: ` + +

hello alice

+ `, + + ssrHtml: ` + +

hello alice

+ `, + + async test({ assert, component, target, window }) { + const input = target.querySelector('input'); + assert.equal(input.value, 'alice'); + + const event = new window.Event('input'); + + input.value = 'bob'; + await input.dispatchEvent(event); + + assert.htmlEqual(target.innerHTML, ` + +

hello bob

+ `); + }, +}; diff --git a/test/runtime/samples/binding-input-text-const/main.html b/test/runtime/samples/binding-input-text-const/main.html new file mode 100644 index 0000000000..b89dacddb0 --- /dev/null +++ b/test/runtime/samples/binding-input-text-const/main.html @@ -0,0 +1,8 @@ + + + +

hello {user.name}

\ No newline at end of file