Add failing specs for empty preload/src attribute

This commit is contained in:
Kevin Sawicki 2016-09-08 16:40:31 -07:00
parent 9829baed46
commit ea069805d1

View file

@ -75,6 +75,12 @@ describe('<webview> tag', function () {
webview.src = 'file://' + fixtures + '/pages/a.html'
document.body.appendChild(webview)
})
it('ignores empty values', function () {
assert.equal(webview.src, '')
webview.src = ''
assert.equal(webview.src, '')
})
})
describe('nodeintegration attribute', function () {
@ -198,6 +204,12 @@ describe('<webview> tag', function () {
webview.src = 'file://' + fixtures + '/pages/base-page.html'
document.body.appendChild(webview)
})
it('ignores empty values', function () {
assert.equal(webview.preload, '')
webview.preload = ''
assert.equal(webview.preload, '')
})
})
describe('httpreferrer attribute', function () {