Convert "\" to "/" in file:// url

This commit is contained in:
Cheng Zhao 2017-02-14 19:58:42 +09:00 committed by deepak1556
parent 422b7acece
commit 210f40dd53

View file

@ -805,7 +805,11 @@ describe('chromium feature', function () {
describe('PDF Viewer', function () {
let w = null
const pdfSource = `file://${fixtures}/assets/pdf.pdf`
const pdfSource = url.format({
pathname: path.join(fixtures, 'assets', 'pdf.pdf').replace(/\\/g, '/'),
protocol: 'file',
slashes: true
})
beforeEach(function () {
w = new BrowserWindow({