mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Convert "\" to "/" in file:// url
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user