spec: Add test for webContents.beginFrameSubscription
This commit is contained in:
parent
32bff05208
commit
353cdd967a
1 changed files with 8 additions and 0 deletions
|
@ -303,3 +303,11 @@ describe 'browser-window module', ->
|
||||||
assert.equal url, 'https://www.github.com/'
|
assert.equal url, 'https://www.github.com/'
|
||||||
done()
|
done()
|
||||||
w.loadUrl "file://#{fixtures}/pages/will-navigate.html"
|
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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue