   setup ->
     stubSettings "filterLinkHints", true
     stubSettings "linkHintNumbers", "0123456789"
+    stub window, "windowIsFocused", -> true
 
   context "Text hints",
 

      stubSettings "filterLinkHints", isFilteredMode
      stubSettings "linkHintCharacters", "ab"
      stubSettings "linkHintNumbers", "12"

    tearDown ->
      document.getElementById("test-div").innerHTML = ""

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

  tearDown ->
    document.getElementById("test-div").innerHTML = ""
