projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fc888
)
spec: Prevent callback of beginFrameSubscription being called twice
author
Cheng Zhao
<zcbenz@gmail.com>
Mon, 21 Sep 2015 03:24:05 +0000
(11:24 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Mon, 21 Sep 2015 03:24:05 +0000
(11:24 +0800)
spec/api-browser-window-spec.coffee
patch
|
blob
|
history
diff --git
a/spec/api-browser-window-spec.coffee
b/spec/api-browser-window-spec.coffee
index
bb4d782
..
64e6271
100644
(file)
--- a/
spec/api-browser-window-spec.coffee
+++ b/
spec/api-browser-window-spec.coffee
@@
-306,8
+306,11
@@
describe 'browser-window module', ->
describe 'beginFrameSubscription method', ->
it 'subscribes frame updates', (done) ->
+ called = false
w.loadUrl "file://#{fixtures}/api/blank.html"
w.webContents.beginFrameSubscription (data) ->
+ return if called
+ called = true
assert.notEqual data.length, 0
w.webContents.endFrameSubscription()
done()