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

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

Issue 2421473004: CSP: Fire 'SecurityPolicyViolation' on the offending element. (Closed)
Patch Set: Test. 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14b3a5688419e7b742cd4c8ca618f61ea5cb660e..424af498262d53a3128a42b75627f884a1cbfbb1 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
@@ -12,7 +12,7 @@ var testObject = {nyannyan: 123};
var testDiv = document.createElement("div");
// No initializer is passed.
-shouldBeFalse("new SecurityPolicyViolationEvent('eventType').bubbles");
+shouldBeTrue("new SecurityPolicyViolationEvent('eventType').bubbles");
shouldBeFalse("new SecurityPolicyViolationEvent('eventType').cancelable");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').documentURI");
shouldBeEmptyString("new SecurityPolicyViolationEvent('eventType').referrer");
@@ -26,13 +26,13 @@ shouldBe("new SecurityPolicyViolationEvent('eventType').lineNumber", "0");
shouldBe("new SecurityPolicyViolationEvent('eventType').columnNumber", "0");
shouldBe("new SecurityPolicyViolationEvent('eventType').statusCode", "0");
-// bubbles is passed.
-shouldBeFalse("new SecurityPolicyViolationEvent('eventType', { bubbles: false }).bubbles");
+// bubbles is always true.
+shouldBeTrue("new SecurityPolicyViolationEvent('eventType', { bubbles: false }).bubbles");
shouldBeTrue("new SecurityPolicyViolationEvent('eventType', { bubbles: true }).bubbles");
-// cancelable is passed.
+// cancelable is always false.
shouldBeFalse("new SecurityPolicyViolationEvent('eventType', { cancelable: false }).cancelable");
-shouldBeTrue("new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancelable");
+shouldBeFalse("new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancelable");
// String members are passed.
["documentURI", "referrer", "blockedURI", "violatedDirective", "effectiveDirective", "originalPolicy", "sourceFile"].forEach(function(member) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698