Skip to content

Commit ffb9e9d

Browse files
authored
Fix description to match assertions in resource-timing-cross-origin.https.html
1 parent a8358ab commit ffb9e9d

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

service-workers/service-worker/resource-timing-cross-origin.https.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@
2525
const entry = entries[0];
2626
assert_equals(entry.redirectStart, 0, 'redirectStart should be 0 in cross-origin request.');
2727
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.');
3936
frame.remove();
4037
await registration.unregister();
4138
}, `Test that timing allow check fails when service worker changes origin from same to cross origin (${mode}).`);

0 commit comments

Comments
 (0)