spec: Fix failing test due to path delimiter
This commit is contained in:
parent
247b3f3605
commit
b35f4c1805
1 changed files with 4 additions and 1 deletions
|
@ -199,7 +199,10 @@ describe('chromium feature', function () {
|
||||||
|
|
||||||
it('defines a window.location getter', function (done) {
|
it('defines a window.location getter', function (done) {
|
||||||
var b, targetURL
|
var b, targetURL
|
||||||
targetURL = 'file://' + fixtures + '/pages/base-page.html'
|
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)
|
b = window.open(targetURL)
|
||||||
BrowserWindow.fromId(b.guestId).webContents.once('did-finish-load', function () {
|
BrowserWindow.fromId(b.guestId).webContents.once('did-finish-load', function () {
|
||||||
assert.equal(b.location, targetURL)
|
assert.equal(b.location, targetURL)
|
||||||
|
|
Loading…
Reference in a new issue