diff --git a/spec/webview-spec.js b/spec/webview-spec.js index 8e4779d80992..3629c5ec2edb 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -75,6 +75,12 @@ describe(' 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(' 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 () {