Remove lint errors
This commit is contained in:
parent
fd23c7bf76
commit
1f07977f09
2 changed files with 6 additions and 7 deletions
|
@ -46,7 +46,7 @@ describe('chromium feature', function () {
|
||||||
var w = null
|
var w = null
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
return closeWindow(w).then(() => w = null)
|
return closeWindow(w).then(function () { w = null })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('is set correctly when window is not shown', function (done) {
|
it('is set correctly when window is not shown', function (done) {
|
||||||
|
@ -157,7 +157,7 @@ describe('chromium feature', function () {
|
||||||
var w = null
|
var w = null
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
return closeWindow(w).then(() => w = null)
|
return closeWindow(w).then(function () { w = null })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should register for file scheme', function (done) {
|
it('should register for file scheme', function (done) {
|
||||||
|
@ -190,7 +190,7 @@ describe('chromium feature', function () {
|
||||||
let w = null
|
let w = null
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
return closeWindow(w).then(() => w = null)
|
return closeWindow(w).then(function () { w = null })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('returns a BrowserWindowProxy object', function () {
|
it('returns a BrowserWindowProxy object', function () {
|
||||||
|
@ -269,7 +269,7 @@ describe('chromium feature', function () {
|
||||||
it('handles cycles when merging the parent options into the child options', (done) => {
|
it('handles cycles when merging the parent options into the child options', (done) => {
|
||||||
w = BrowserWindow.fromId(ipcRenderer.sendSync('create-window-with-options-cycle'))
|
w = BrowserWindow.fromId(ipcRenderer.sendSync('create-window-with-options-cycle'))
|
||||||
w.loadURL('file://' + fixtures + '/pages/window-open.html')
|
w.loadURL('file://' + fixtures + '/pages/window-open.html')
|
||||||
w.webContents.once('new-window', (event, url, frameName, disposition, options) => {
|
w.webContents.once('new-window', (event, url, frameName, disposition, options) => {
|
||||||
assert.equal(options.show, false)
|
assert.equal(options.show, false)
|
||||||
assert.deepEqual(options.foo, {
|
assert.deepEqual(options.foo, {
|
||||||
bar: null,
|
bar: null,
|
||||||
|
@ -340,7 +340,7 @@ describe('chromium feature', function () {
|
||||||
let w = null
|
let w = null
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
return closeWindow(w).then(() => w = null)
|
return closeWindow(w).then(function () { w = null })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('is null for main window', function (done) {
|
it('is null for main window', function (done) {
|
||||||
|
|
|
@ -231,12 +231,11 @@ ipcMain.on('close-on-will-navigate', (event, id) => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
ipcMain.on('create-window-with-options-cycle', (event) => {
|
ipcMain.on('create-window-with-options-cycle', (event) => {
|
||||||
// This can't be done over remote since cycles are already
|
// This can't be done over remote since cycles are already
|
||||||
// nulled out at the IPC layer
|
// nulled out at the IPC layer
|
||||||
const foo = {}
|
const foo = {}
|
||||||
foo.bar = foo
|
foo.bar = foo
|
||||||
foo.baz = {
|
foo.baz = {
|
||||||
hello: {
|
hello: {
|
||||||
world: true
|
world: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue