1 This tests the constructor for the SecurityPolicyViolationEvent DOM class.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new SecurityPolicyViolationEvent('eventType').bubbles is false
7 PASS new SecurityPolicyViolationEvent('eventType').cancelable is false
8 PASS new SecurityPolicyViolationEvent('eventType').documentURI is ""
9 PASS new SecurityPolicyViolationEvent('eventType').referrer is ""
10 PASS new SecurityPolicyViolationEvent('eventType').blockedURI is ""
11 PASS new SecurityPolicyViolationEvent('eventType').violatedDirective is ""
12 PASS new SecurityPolicyViolationEvent('eventType').effectiveDirective is ""
13 PASS new SecurityPolicyViolationEvent('eventType').originalPolicy is ""
14 PASS new SecurityPolicyViolationEvent('eventType').sourceFile is ""
15 PASS new SecurityPolicyViolationEvent('eventType').lineNumber is 0
16 PASS new SecurityPolicyViolationEvent('eventType').columnNumber is 0
17 PASS new SecurityPolicyViolationEvent('eventType').statusCode is 0
18 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: false }).bubbles is false
19 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: true }).bubbles is true
20 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: false }).cancelable is false
21 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancelable is true
22 PASS new SecurityPolicyViolationEvent('eventType', { documentURI: 'foo' }).documentURI is "foo"
23 PASS new SecurityPolicyViolationEvent('eventType', { referrer: 'foo' }).referrer is "foo"
24 PASS new SecurityPolicyViolationEvent('eventType', { blockedURI: 'foo' }).blockedURI is "foo"
25 PASS new SecurityPolicyViolationEvent('eventType', { violatedDirective: 'foo' }).violatedDirective is "foo"
26 PASS new SecurityPolicyViolationEvent('eventType', { effectiveDirective: 'foo' }).effectiveDirective is "foo"
27 PASS new SecurityPolicyViolationEvent('eventType', { originalPolicy: 'foo' }).originalPolicy is "foo"
28 PASS new SecurityPolicyViolationEvent('eventType', { sourceFile: 'foo' }).sourceFile is "foo"
29 PASS new SecurityPolicyViolationEvent('eventType', { lineNumber: 42 }).lineNumber is 42
30 PASS new SecurityPolicyViolationEvent('eventType', { columnNumber: 42 }).columnNumber is 42
31 PASS new SecurityPolicyViolationEvent('eventType', { statusCode: 42 }).statusCode is 42
32 PASS successfullyParsed is true