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:
4e7e9d1
)
Add spec for window.open toString errors
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 25 Apr 2017 20:16:07 +0000
(13:16 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 26 Apr 2017 16:08:47 +0000
(09:08 -0700)
spec/chromium-spec.js
patch
|
blob
|
history
diff --git
a/spec/chromium-spec.js
b/spec/chromium-spec.js
index
9cce9fe
..
dd992dc
100644
(file)
--- a/
spec/chromium-spec.js
+++ b/
spec/chromium-spec.js
@@
-361,6
+361,16
@@
describe('chromium feature', function () {
})
b = window.open()
})
+
+ it('throws an exception when the arguments cannot be converted to strings', function () {
+ assert.throws(function () {
+ window.open('', {toString: null})
+ }, /Cannot convert object to primitive value/)
+
+ assert.throws(function () {
+ window.open('', '', {toString: 3})
+ }, /Cannot convert object to primitive value/)
+ })
})
describe('window.opener', function () {