OLD | NEW |
1 This tests the constructor for the SecurityPolicyViolationEvent DOM class. | 1 This tests the constructor for the SecurityPolicyViolationEvent DOM class. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS new SecurityPolicyViolationEvent('eventType').bubbles is false | 6 PASS new SecurityPolicyViolationEvent('eventType').bubbles is false |
7 PASS new SecurityPolicyViolationEvent('eventType').cancelable is false | 7 PASS new SecurityPolicyViolationEvent('eventType').cancelable is false |
8 PASS new SecurityPolicyViolationEvent('eventType').documentURI is "" | 8 PASS new SecurityPolicyViolationEvent('eventType').documentURI is "" |
9 PASS new SecurityPolicyViolationEvent('eventType').referrer is "" | 9 PASS new SecurityPolicyViolationEvent('eventType').referrer is "" |
10 PASS new SecurityPolicyViolationEvent('eventType').blockedURI is "" | 10 PASS new SecurityPolicyViolationEvent('eventType').blockedURI is "" |
11 PASS new SecurityPolicyViolationEvent('eventType').violatedDirective is "" | 11 PASS new SecurityPolicyViolationEvent('eventType').violatedDirective is "" |
12 PASS new SecurityPolicyViolationEvent('eventType').effectiveDirective is "" | 12 PASS new SecurityPolicyViolationEvent('eventType').effectiveDirective is "" |
13 PASS new SecurityPolicyViolationEvent('eventType').originalPolicy is "" | 13 PASS new SecurityPolicyViolationEvent('eventType').originalPolicy is "" |
14 PASS new SecurityPolicyViolationEvent('eventType').sourceFile is "" | 14 PASS new SecurityPolicyViolationEvent('eventType').sourceFile is "" |
| 15 PASS new SecurityPolicyViolationEvent('eventType').disposition is "enforce" |
15 PASS new SecurityPolicyViolationEvent('eventType').lineNumber is 0 | 16 PASS new SecurityPolicyViolationEvent('eventType').lineNumber is 0 |
16 PASS new SecurityPolicyViolationEvent('eventType').columnNumber is 0 | 17 PASS new SecurityPolicyViolationEvent('eventType').columnNumber is 0 |
17 PASS new SecurityPolicyViolationEvent('eventType').statusCode is 0 | 18 PASS new SecurityPolicyViolationEvent('eventType').statusCode is 0 |
18 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: false }).bubbles i
s false | 19 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: false }).bubbles i
s false |
19 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: true }).bubbles is
true | 20 PASS new SecurityPolicyViolationEvent('eventType', { bubbles: true }).bubbles is
true |
20 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: false }).cancel
able is false | 21 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: false }).cancel
able is false |
21 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancela
ble is true | 22 PASS new SecurityPolicyViolationEvent('eventType', { cancelable: true }).cancela
ble is true |
22 PASS new SecurityPolicyViolationEvent('eventType', { documentURI: 'foo' }).docum
entURI is "foo" | 23 PASS new SecurityPolicyViolationEvent('eventType', { documentURI: 'foo' }).docum
entURI is "foo" |
23 PASS new SecurityPolicyViolationEvent('eventType', { referrer: 'foo' }).referrer
is "foo" | 24 PASS new SecurityPolicyViolationEvent('eventType', { referrer: 'foo' }).referrer
is "foo" |
24 PASS new SecurityPolicyViolationEvent('eventType', { blockedURI: 'foo' }).blocke
dURI is "foo" | 25 PASS new SecurityPolicyViolationEvent('eventType', { blockedURI: 'foo' }).blocke
dURI is "foo" |
25 PASS new SecurityPolicyViolationEvent('eventType', { violatedDirective: 'foo' })
.violatedDirective is "foo" | 26 PASS new SecurityPolicyViolationEvent('eventType', { violatedDirective: 'foo' })
.violatedDirective is "foo" |
26 PASS new SecurityPolicyViolationEvent('eventType', { effectiveDirective: 'foo' }
).effectiveDirective is "foo" | 27 PASS new SecurityPolicyViolationEvent('eventType', { effectiveDirective: 'foo' }
).effectiveDirective is "foo" |
27 PASS new SecurityPolicyViolationEvent('eventType', { originalPolicy: 'foo' }).or
iginalPolicy is "foo" | 28 PASS new SecurityPolicyViolationEvent('eventType', { originalPolicy: 'foo' }).or
iginalPolicy is "foo" |
28 PASS new SecurityPolicyViolationEvent('eventType', { sourceFile: 'foo' }).source
File is "foo" | 29 PASS new SecurityPolicyViolationEvent('eventType', { sourceFile: 'foo' }).source
File is "foo" |
| 30 PASS new SecurityPolicyViolationEvent('eventType', { disposition: 'foo' }).dispo
sition threw exception TypeError: Failed to construct 'SecurityPolicyViolationEv
ent': The provided value 'foo' is not a valid enum value of type SecurityPolicyV
iolationEventDisposition.. |
29 PASS new SecurityPolicyViolationEvent('eventType', { lineNumber: 42 }).lineNumbe
r is 42 | 31 PASS new SecurityPolicyViolationEvent('eventType', { lineNumber: 42 }).lineNumbe
r is 42 |
30 PASS new SecurityPolicyViolationEvent('eventType', { columnNumber: 42 }).columnN
umber is 42 | 32 PASS new SecurityPolicyViolationEvent('eventType', { columnNumber: 42 }).columnN
umber is 42 |
31 PASS new SecurityPolicyViolationEvent('eventType', { statusCode: 42 }).statusCod
e is 42 | 33 PASS new SecurityPolicyViolationEvent('eventType', { statusCode: 42 }).statusCod
e is 42 |
32 PASS successfullyParsed is true | 34 PASS successfullyParsed is true |
33 | 35 |
34 TEST COMPLETE | 36 TEST COMPLETE |
35 | 37 |
OLD | NEW |