mirror of
https://github.com/electron/electron.git
synced 2026-01-24 06:48:15 -05:00
spec: Bring back beginFrameSubscription test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user