diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index b0ee1a66..11fbe11f 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -218,6 +218,11 @@ context "Input focus", focusInput 100 assert.isTrue InsertMode.permanentInstance.isActive() + should "activate the most recently-selected input if the count is 1", -> + focusInput 3 + focusInput 1 + assert.equal "third", document.activeElement.id + should "not trigger insert if there are no inputs", -> document.getElementById("test-div").innerHTML = "" focusInput 1 |
