spec: Bring back beginFrameSubscription test
This commit is contained in:
parent
1232a285e6
commit
ed1966ac76
1 changed files with 7 additions and 1 deletions
|
@ -478,10 +478,16 @@ describe('browser-window module', function() {
|
|||
});
|
||||
});
|
||||
|
||||
xdescribe('beginFrameSubscription method', function() {
|
||||
describe('beginFrameSubscription method', function() {
|
||||
it('subscribes frame updates', function(done) {
|
||||
let called = false;
|
||||
w.loadURL("file://" + fixtures + "/api/blank.html");
|
||||
w.webContents.beginFrameSubscription(function(data) {
|
||||
// This callback might be called twice.
|
||||
if (called)
|
||||
return;
|
||||
called = true;
|
||||
|
||||
assert.notEqual(data.length, 0);
|
||||
w.webContents.endFrameSubscription();
|
||||
done();
|
||||
|
|
Loading…
Reference in a new issue