From afb551e94a1076ba9ccef14c64e3294f74dc7878 Mon Sep 17 00:00:00 2001 From: gellert Date: Fri, 9 Sep 2016 23:40:10 +0200 Subject: [PATCH] updates tests --- spec/api-browser-window-spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index ba8c979a9f..be56c0b60a 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -670,12 +670,12 @@ describe('browser-window module', function () { let called = false w.loadURL('file://' + fixtures + '/api/frame-subscriber.html') w.webContents.on('dom-ready', function () { - w.webContents.beginFrameSubscription(function (data) { + w.webContents.beginFrameSubscription(function (image) { // This callback might be called twice. if (called) return called = true - assert.notEqual(data.length, 0) + assert.equal(image.isEmpty(), false) w.webContents.endFrameSubscription() done() }) @@ -686,12 +686,12 @@ describe('browser-window module', function () { let called = false w.loadURL('file://' + fixtures + '/api/frame-subscriber.html') w.webContents.on('dom-ready', function () { - w.webContents.beginFrameSubscription(true, function (data) { + w.webContents.beginFrameSubscription(true, function (image) { // This callback might be called twice. if (called) return called = true - assert.notEqual(data.length, 0) + assert.equal(image.isEmpty(), false) w.webContents.endFrameSubscription() done() })