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-expected.txt

Issue 2331213002: Add `disposition` to SecurityPolicyViolationEvent (Closed)
Patch Set: Fix a typo in rebased test expectation Created 4 years, 2 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-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt b/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt
index 1fc04187f682b020763054fd15fd188cbb4f78cc..c824a64b99b6575b6660a08b2302d73e51fbe41a 100644
--- a/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt
@@ -12,6 +12,7 @@ PASS new SecurityPolicyViolationEvent('eventType').violatedDirective is ""
PASS new SecurityPolicyViolationEvent('eventType').effectiveDirective is ""
PASS new SecurityPolicyViolationEvent('eventType').originalPolicy is ""
PASS new SecurityPolicyViolationEvent('eventType').sourceFile is ""
+PASS new SecurityPolicyViolationEvent('eventType').disposition is "enforce"
PASS new SecurityPolicyViolationEvent('eventType').lineNumber is 0
PASS new SecurityPolicyViolationEvent('eventType').columnNumber is 0
PASS new SecurityPolicyViolationEvent('eventType').statusCode is 0
@@ -26,6 +27,7 @@ PASS new SecurityPolicyViolationEvent('eventType', { violatedDirective: 'foo' })
PASS new SecurityPolicyViolationEvent('eventType', { effectiveDirective: 'foo' }).effectiveDirective is "foo"
PASS new SecurityPolicyViolationEvent('eventType', { originalPolicy: 'foo' }).originalPolicy is "foo"
PASS new SecurityPolicyViolationEvent('eventType', { sourceFile: 'foo' }).sourceFile is "foo"
+PASS new SecurityPolicyViolationEvent('eventType', { disposition: 'foo' }).disposition threw exception TypeError: Failed to construct 'SecurityPolicyViolationEvent': The provided value 'foo' is not a valid enum value of type SecurityPolicyViolationEventDisposition..
PASS new SecurityPolicyViolationEvent('eventType', { lineNumber: 42 }).lineNumber is 42
PASS new SecurityPolicyViolationEvent('eventType', { columnNumber: 42 }).columnNumber is 42
PASS new SecurityPolicyViolationEvent('eventType', { statusCode: 42 }).statusCode is 42

Powered by Google App Engine
This is Rietveld 408576698