mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
spec: Add test for webContents.beginFrameSubscription
This commit is contained in:
@@ -303,3 +303,11 @@ describe 'browser-window module', ->
|
||||
assert.equal url, 'https://www.github.com/'
|
||||
done()
|
||||
w.loadUrl "file://#{fixtures}/pages/will-navigate.html"
|
||||
|
||||
describe 'beginFrameSubscription method', ->
|
||||
it 'subscribes frame updates', (done) ->
|
||||
w.loadUrl "file://#{fixtures}/api/blank.html"
|
||||
w.webContents.beginFrameSubscription (data) ->
|
||||
assert.notEqual data.length, 0
|
||||
w.webContents.endFrameSubscription()
|
||||
done()
|
||||
|
||||
Reference in New Issue
Block a user