spec: Fix failing test due to path delimiter

This commit is contained in:
Cheng Zhao 2016-04-01 16:42:44 +09:00
parent 247b3f3605
commit b35f4c1805

View file

@ -199,6 +199,9 @@ describe('chromium feature', function () {
it('defines a window.location getter', function (done) {
var b, targetURL
if (process.platform == 'win32')
targetURL = 'file:///' + fixtures.replace(/\\/g, '/') + '/pages/base-page.html'
else
targetURL = 'file://' + fixtures + '/pages/base-page.html'
b = window.open(targetURL)
BrowserWindow.fromId(b.guestId).webContents.once('did-finish-load', function () {