Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html

Issue 2331213002: Add `disposition` to SecurityPolicyViolationEvent (Closed)
Patch Set: Use enum in SecurityPolicyViolationEvent Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html b/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html
index 10ffd7b2ada29b202630dc6b49c090e0b01a1c3b..16528c205287c1db49f2ed11a1da1297375a6e05 100644
--- a/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html
+++ b/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html
@@ -20,6 +20,7 @@ shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').blockedURI");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').violatedDirective");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').effectiveDirective");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').originalPolicy");
+shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').disposition");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').sourceFile");
shouldBe("new SecurityPolicyViolationEvent('eventType').lineNumber", "0");
shouldBe("new SecurityPolicyViolationEvent('eventType').columnNumber", "0");
@@ -34,7 +35,7 @@ shouldBeFalse("new SecurityPolicyViolationEvent('eventType', { cancelable: false
shouldBeTrue("new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancelable");
// String members are passed.
-["documentURI", "referrer", "blockedURI", "violatedDirective", "effectiveDirective", "originalPolicy", "sourceFile"].forEach(function(member) {
+["documentURI", "referrer", "blockedURI", "violatedDirective", "effectiveDirective", "originalPolicy", "disposition", "sourceFile"].forEach(function(member) {
shouldBeEqualToString("new SecurityPolicyViolationEvent('eventType', { " + member + ": 'foo' })." + member, "foo");
});

Powered by Google App Engine
This is Rietveld 408576698