mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add failing specs for empty preload/src attribute
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user