From e4c6621ba8765cdba1ceb0bd4d045f425e0acaaf Mon Sep 17 00:00:00 2001 From: Barney Carroll Date: Sun, 2 May 2021 15:01:49 +0100 Subject: [PATCH] Updating textarea subtree should not be expected to override user input --- render/tests/test-input.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/render/tests/test-input.js b/render/tests/test-input.js index 16345fe6..214b3278 100644 --- a/render/tests/test-input.js +++ b/render/tests/test-input.js @@ -279,19 +279,4 @@ o.spec("form inputs", function() { o(root.firstChild.selectedIndex).equals(1) }) }) - - o.spec("textarea", function() { - o("updates after user input", function() { - render(root, m("textarea", "aaa")) - - //simulate typing - root.firstChild.value = "bbb" - - //re-render may occur after value attribute is touched - render(root, m("textarea", "ccc")) - - o(root.firstChild.value).equals("ccc") - //FIXME should fail if fix is commented out - }) - }) })