Add on method to fake browser window in tests

This commit is contained in:
Nathan Sobo
2016-08-02 17:12:04 -06:00
parent 89ef73a64b
commit 46b59906e0

View File

@@ -206,6 +206,7 @@ describe "WindowEventHandler", ->
webContentsSpy = jasmine.createSpyObj("webContents", ["copy", "paste"])
spyOn(atom.applicationDelegate, "getCurrentWindow").andReturn({
webContents: webContentsSpy
on: ->
})
nativeKeyBindingsInput = document.createElement("input")