From ea069805d197257269b12be24061b2b44ba3676f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 8 Sep 2016 16:40:31 -0700 Subject: [PATCH] Add failing specs for empty preload/src attribute --- spec/webview-spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 () {