Add failing specs for empty preload/src attribute
This commit is contained in:
parent
9829baed46
commit
ea069805d1
1 changed files with 12 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue