Fix integration tests

This commit is contained in:
Mostafa Eweda
2015-05-22 12:49:25 -07:00
parent d42a660f9b
commit b0dd7b974f

View File

@@ -5,6 +5,7 @@ ipc = require 'ipc'
shell = require 'shell'
{Subscriber} = require 'emissary'
fs = require 'fs-plus'
url = require 'url'
# Handles low-level events related to the window.
module.exports =
@@ -28,7 +29,8 @@ class WindowEventHandler
else
atom.project.addPath(pathToOpen)
if fs.isFileSync(pathToOpen)
{protocol} = url.parse(pathToOpen)
unless fs.isDirectorySync(pathToOpen) or protocol?
atom.workspace?.open(pathToOpen, {initialLine, initialColumn})
return