| 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..14b3a5688419e7b742cd4c8ca618f61ea5cb660e 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
|
| @@ -21,6 +21,7 @@ shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').violatedDirec
|
| shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').effectiveDirective");
|
| shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').originalPolicy");
|
| shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').sourceFile");
|
| +shouldBeEqualToString("new SecurityPolicyViolationEvent('eventType').disposition", "enforce");
|
| shouldBe("new SecurityPolicyViolationEvent('eventType').lineNumber", "0");
|
| shouldBe("new SecurityPolicyViolationEvent('eventType').columnNumber", "0");
|
| shouldBe("new SecurityPolicyViolationEvent('eventType').statusCode", "0");
|
| @@ -38,6 +39,9 @@ shouldBeTrue("new SecurityPolicyViolationEvent('eventType', { cancelable: true }
|
| shouldBeEqualToString("new SecurityPolicyViolationEvent('eventType', { " + member + ": 'foo' })." + member, "foo");
|
| });
|
|
|
| +// Enum members throw on unknown initializer values.
|
| +shouldThrow("new SecurityPolicyViolationEvent('eventType', { disposition: 'foo' }).disposition");
|
| +
|
| // Number members are passed.
|
| ["lineNumber", "columnNumber", "statusCode"].forEach(function(member) {
|
| shouldBe("new SecurityPolicyViolationEvent('eventType', { " + member + ": 42 })." + member, "42");
|
|
|