mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add on method to fake browser window in tests
This commit is contained in:
@@ -206,6 +206,7 @@ describe "WindowEventHandler", ->
|
||||
webContentsSpy = jasmine.createSpyObj("webContents", ["copy", "paste"])
|
||||
spyOn(atom.applicationDelegate, "getCurrentWindow").andReturn({
|
||||
webContents: webContentsSpy
|
||||
on: ->
|
||||
})
|
||||
|
||||
nativeKeyBindingsInput = document.createElement("input")
|
||||
|
||||
Reference in New Issue
Block a user