WIP - debug travis CI failures

This commit is contained in:
Max Brunsfeld
2016-09-15 17:13:52 -07:00
parent 0d2b7d12b7
commit e444076a46
2 changed files with 9 additions and 4 deletions

View File

@@ -310,16 +310,18 @@ describe('AtomApplication', function () {
fs.symlinkSync(packagePath, path.join(packagesDirPath, 'package-with-directory-provider'))
const atomApplication = buildAtomApplication()
const newRemoteFilePath = 'remote://server:3437/some/directory/path'
const window = atomApplication.launch(parseCommandLine([newRemoteFilePath]))
const remoteDirectoryPath = 'remote://server:3437/some/directory/path'
const window = atomApplication.launch(parseCommandLine([remoteDirectoryPath]))
await window.loadedPromise
await focusWindow(window)
let projectPaths = await evalInWebContents(window.browserWindow.webContents, function (sendBackToMainProcess) {
sendBackToMainProcess(atom.project.getPaths())
})
assert.deepEqual(projectPaths, [newRemoteFilePath])
assert.deepEqual(projectPaths, [remoteDirectoryPath])
await window.saveState()
await new Promise((resolve) => {
window.browserWindow.once('window:loaded', resolve)
window.reload()
@@ -328,7 +330,7 @@ describe('AtomApplication', function () {
projectPaths = await evalInWebContents(window.browserWindow.webContents, function (sendBackToMainProcess) {
sendBackToMainProcess(atom.project.getPaths())
})
assert.deepEqual(projectPaths, [newRemoteFilePath])
assert.deepEqual(projectPaths, [remoteDirectoryPath])
})
it('reopens any previously opened windows when launched with no path', async function () {

View File

@@ -77,8 +77,11 @@
setupVmCompatibility()
setupCsonCache(CompileCache.getCacheDirectory())
console.log("INITIALIZING")
var initialize = require(loadSettings.windowInitializationScript)
console.log("INITIALIZED")
return initialize({blobStore: blobStore}).then(function () {
console.log("EMITTING WINDOW LOADED EVENT")
require('electron').ipcRenderer.send('window-command', 'window:loaded')
})
}