diff --git a/content-security-policy/securitypolicyviolation/constructor-required-fields.html b/content-security-policy/securitypolicyviolation/constructor-required-fields.html index 1a090d8e2c46057..1f30e38b0c254d7 100644 --- a/content-security-policy/securitypolicyviolation/constructor-required-fields.html +++ b/content-security-policy/securitypolicyviolation/constructor-required-fields.html @@ -25,118 +25,111 @@ }), undefined); }, "SecurityPolicyViolationEvent constructor works with an init dict"); - // missing required members + // missing optional members test(function() { - assert_throws_js(TypeError, - function() { new SecurityPolicyViolationEvent("securitypolicyviolation", { - // documentURI: "http://example.com", - referrer: "http://example.com", - blockedURI: "http://example.com", - violatedDirective: "default-src", - effectiveDirective: "default-src", - originalPolicy: "default-src 'none'", - sourceFile: "example.js", - sample: "