Add spec for invalid window.history.go offset

This commit is contained in:
Kevin Sawicki 2017-04-25 14:48:01 -07:00
parent 8460a580b9
commit 775753c3d7

View file

@ -989,4 +989,12 @@ describe('chromium feature', function () {
}, /Cannot convert object to primitive value/) }, /Cannot convert object to primitive value/)
}) })
}) })
describe('window.history.go(offset)', function () {
it('throws an exception when the argumnet cannot be converted to a string', function () {
assert.throws(function () {
window.history.go({toString: null})
}, /Cannot convert object to primitive value/)
})
})
}) })