     document.getElementById("test-div").innerHTML = testContent
     stubSettings "filterLinkHints", true
     stubSettings "linkHintNumbers", "12"
+    stub window, "windowIsFocused", -> true
 
   tearDown ->
     document.getElementById("test-div").innerHTML = ""

  setup ->
    stubSettings "filterLinkHints", true
    stubSettings "linkHintNumbers", "0123456789"

  context "Text hints",


    initializeModeState()
    stubSettings "filterLinkHints", false
    stubSettings "linkHintCharacters", "ab"
    stub window, "windowIsFocused", -> true

    # Three hints will trigger double hint chars.
    createLinks 3
