From: Kevin Sawicki Date: Wed, 4 Jan 2017 22:57:51 +0000 (-0800) Subject: Remove lint errors X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f07977f091ef9b23e75d333ac141a78364884d9;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Remove lint errors --- diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 8b672a6..58efdc7 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -46,7 +46,7 @@ describe('chromium feature', function () { var w = null 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) { @@ -157,7 +157,7 @@ describe('chromium feature', function () { var w = null afterEach(function () { - return closeWindow(w).then(() => w = null) + return closeWindow(w).then(function () { w = null }) }) it('should register for file scheme', function (done) { @@ -190,7 +190,7 @@ describe('chromium feature', function () { let w = null afterEach(() => { - return closeWindow(w).then(() => w = null) + return closeWindow(w).then(function () { w = null }) }) 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) => { w = BrowserWindow.fromId(ipcRenderer.sendSync('create-window-with-options-cycle')) 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.deepEqual(options.foo, { bar: null, @@ -340,7 +340,7 @@ describe('chromium feature', function () { let w = null afterEach(function () { - return closeWindow(w).then(() => w = null) + return closeWindow(w).then(function () { w = null }) }) it('is null for main window', function (done) { diff --git a/spec/static/main.js b/spec/static/main.js index 5713783..b9d7d94 100644 --- a/spec/static/main.js +++ b/spec/static/main.js @@ -231,12 +231,11 @@ ipcMain.on('close-on-will-navigate', (event, id) => { }) }) - ipcMain.on('create-window-with-options-cycle', (event) => { // This can't be done over remote since cycles are already // nulled out at the IPC layer const foo = {} - foo.bar = foo + foo.bar = foo foo.baz = { hello: { world: true