Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11348 from atom/wl-drewmnoel-electron
Browse files Browse the repository at this point in the history
Update Electron to 0.36.12
  • Loading branch information
Antonio Scandurra committed Apr 30, 2016
2 parents 5a9bd28 + 58f029e commit 0050225
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/atom/atom/issues"
},
"license": "MIT",
"electronVersion": "0.36.8",
"electronVersion": "0.36.12",
"dependencies": {
"async": "0.2.6",
"atom-keymap": "6.3.2",
Expand Down
2 changes: 1 addition & 1 deletion spec/atom-environment-spec.coffee
Expand Up @@ -386,7 +386,7 @@ describe "AtomEnvironment", ->
updateAvailableHandler = jasmine.createSpy("update-available-handler")
subscription = atom.onUpdateAvailable updateAvailableHandler

autoUpdater = require('remote').require('auto-updater')
autoUpdater = require('electron').remote.require('auto-updater')
autoUpdater.emit 'update-downloaded', null, "notes", "version"

waitsFor ->
Expand Down
4 changes: 2 additions & 2 deletions spec/module-cache-spec.coffee
Expand Up @@ -8,13 +8,13 @@ describe 'ModuleCache', ->
beforeEach ->
spyOn(Module, '_findPath').andCallThrough()

it 'resolves atom shell module paths without hitting the filesystem', ->
it 'resolves Electron module paths without hitting the filesystem', ->
builtins = ModuleCache.cache.builtins
expect(Object.keys(builtins).length).toBeGreaterThan 0

for builtinName, builtinPath of builtins
expect(require.resolve(builtinName)).toBe builtinPath
expect(fs.isFileSync(require.resolve(builtinName)))
expect(fs.isFileSync(require.resolve(builtinName))).toBeTruthy()

expect(Module._findPath.callCount).toBe 0

Expand Down
2 changes: 1 addition & 1 deletion spec/window-event-handler-spec.coffee
Expand Up @@ -75,7 +75,7 @@ describe "WindowEventHandler", ->

describe "when a link is clicked", ->
it "opens the http/https links in an external application", ->
shell = require 'shell'
{shell} = require 'electron'
spyOn(shell, 'openExternal')

link = document.createElement('a')
Expand Down
8 changes: 4 additions & 4 deletions src/module-cache.coffee
Expand Up @@ -202,13 +202,13 @@ registerBuiltins = (devMode) ->

atomShellRoot = path.join(process.resourcesPath, 'atom.asar')

commonRoot = path.join(atomShellRoot, 'common', 'api', 'lib')
commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'screen', 'shell']
commonRoot = path.join(atomShellRoot, 'common', 'api')
commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'shell']
for builtin in commonBuiltins
cache.builtins[builtin] = path.join(commonRoot, "#{builtin}.js")

rendererRoot = path.join(atomShellRoot, 'renderer', 'api', 'lib')
rendererBuiltins = ['ipc-renderer', 'remote']
rendererRoot = path.join(atomShellRoot, 'renderer', 'api')
rendererBuiltins = ['ipc-renderer', 'remote', 'screen']
for builtin in rendererBuiltins
cache.builtins[builtin] = path.join(rendererRoot, "#{builtin}.js")

Expand Down

0 comments on commit 0050225

Please sign in to comment.