From b35f4c1805db66f5add4fb6a35bf90285cf80a2f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 1 Apr 2016 16:42:44 +0900 Subject: [PATCH] spec: Fix failing test due to path delimiter --- spec/chromium-spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index b6e9a775ed07..27660156e325 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -199,7 +199,10 @@ describe('chromium feature', function () { it('defines a window.location getter', function (done) { 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) BrowserWindow.fromId(b.guestId).webContents.once('did-finish-load', function () { assert.equal(b.location, targetURL)