|
25 | 25 | const entry = entries[0]; |
26 | 26 | assert_equals(entry.redirectStart, 0, 'redirectStart should be 0 in cross-origin request.'); |
27 | 27 | assert_equals(entry.redirectEnd, 0, 'redirectEnd should be 0 in cross-origin request.'); |
28 | | - assert_equals(entry.domainLookupStart, 0, 'domainLookupStart should be 0 in cross-origin request.'); |
29 | | - assert_equals(entry.domainLookupEnd, 0, 'domainLookupEnd should be 0 in cross-origin request.'); |
30 | | - assert_equals(entry.connectStart, 0, 'connectStart should be 0 in cross-origin request.'); |
31 | | - assert_equals(entry.connectEnd, 0, 'connectEnd should be 0 in cross-origin request.'); |
32 | | - assert_equals(entry.responseStart, 0, 'responseStart should be 0 in cross-origin request.'); |
33 | | - assert_greater_than(entry.responseStart, entry.fetchStart, 'responseStart is specific to service-workers.'); |
34 | | - assert_equals(entry.secureConnectionStart, 0, 'secureConnectionStart should be 0 in cross-origin request.'); |
35 | | - assert_equals(entry.decodedBodySize, 0, 'decodedBodySize should be 0 in cross-origin request.'); |
36 | | - assert_equals(entry.encodedBodySize, 0, 'encodedBodySize should be 0 in cross-origin request.'); |
37 | | - assert_equals(entry.transferSize, 0, 'transferSize should be 0 in cross-origin request.'); |
38 | | - assert_equals(entry.nextHopProtocol, "", 'nextHopProtocol should be 0 in cross-origin request.'); |
| 28 | + |
| 29 | + assert_equals(entry.domainLookupStart, entry.fetchStart, 'domainLookupStart and fetchStart should be the same in cross-origin request.'); |
| 30 | + assert_equals(entry.domainLookupEnd, entry.fetchStart, 'domainLookupEnd and fetchStart should be the same in cross-origin request.'); |
| 31 | + assert_equals(entry.connectStart, entry.fetchStart, 'connectStart and fetchStart should be the same in cross-origin request.'); |
| 32 | + assert_equals(entry.connectEnd, entry.fetchStart, 'connectEnd and fetchStart should be the same in cross-origin request.'); |
| 33 | + assert_equals(entry.responseStart, entry.fetchStart, 'responseStart and fetchStart should be the same in cross-origin request.'); |
| 34 | + assert_equals(entry.secureConnectionStart, entry.fetchStart, 'secureConnectionStart and fetchStart should be the same in cross-origin request.'); |
| 35 | + assert_equals(entry.transferSize, 300, 'transferSize should be 300 in cross-origin request.'); |
39 | 36 | frame.remove(); |
40 | 37 | await registration.unregister(); |
41 | 38 | }, `Test that timing allow check fails when service worker changes origin from same to cross origin (${mode}).`); |
|
0 commit comments