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:
88a81ef
)
Add web-contents-created event spec
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 13 Jun 2016 16:05:04 +0000
(09:05 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 13 Jun 2016 16:05:04 +0000
(09:05 -0700)
spec/api-app-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-app-spec.js
b/spec/api-app-spec.js
index
260bdd3
..
d2bda57
100644
(file)
--- a/
spec/api-app-spec.js
+++ b/
spec/api-app-spec.js
@@
-275,7
+275,18
@@
describe('app module', function () {
w = new BrowserWindow({
show: false
})
- w.emit('blur')
+ })
+
+ it('should emit web-contents-created event when a webContents is created', function (done) {
+ app.once('web-contents-created', function (e, webContents) {
+ setImmediate(function () {
+ assert.equal(w.webContents.id, webContents.id)
+ done()
+ })
+ })
+ w = new BrowserWindow({
+ show: false
+ })
})
})
})