Add spec for webPreferences in features string
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 25 Apr 2017 21:19:59 +0000 (14:19 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Wed, 26 Apr 2017 17:56:53 +0000 (10:56 -0700)
spec/chromium-spec.js

index 1b88d78..700983b 100644 (file)
@@ -391,6 +391,14 @@ describe('chromium feature', function () {
       })
       b = window.open('', '__proto__')
     })
+
+    it('does not throw an exception when the features include webPreferences', function () {
+      let b
+      assert.doesNotThrow(function () {
+        b = window.open('', '', 'webPreferences=')
+      })
+      b.close()
+    })
   })
 
   describe('window.opener', function () {