Moving data url test outside post navigation block. Trailing separator comment in the docs.

This commit is contained in:
Nitish Sakhawalkar 2017-03-02 12:14:18 -08:00
parent e8c0813f46
commit 370562b129
4 changed files with 11 additions and 10 deletions

View file

@ -256,13 +256,6 @@ describe('BrowserWindow module', function () {
w.loadURL(server.url)
})
it('should support support base url for data urls', (done) => {
ipcMain.once('answer', function (event, test) {
assert.equal(test, 'test')
done()
})
w.loadURL('data:text/html,<script src="loaded-from-dataurl.js"></script>', {baseURLForDataURL: `file://${path.join(fixtures, 'api')}${path.sep}`})
})
it('sets the content type header on multi part forms', function (done) {
w.webContents.on('did-finish-load', () => {
@ -286,6 +279,14 @@ describe('BrowserWindow module', function () {
w.loadURL(server.url)
})
})
it('should support support base url for data urls', (done) => {
ipcMain.once('answer', function (event, test) {
assert.equal(test, 'test')
done()
})
w.loadURL('data:text/html,<script src="loaded-from-dataurl.js"></script>', {baseURLForDataURL: `file://${path.join(fixtures, 'api')}${path.sep}`})
})
})
describe('will-navigate event', function () {