|
47 | 47 | assert_equals(entryList.length, 1, description);
|
48 | 48 | const entry = entryList[0];
|
49 | 49 |
|
50 |
| - assert_equals(entry.matchedSourceType, options.matched_source_type, description); |
51 |
| - assert_equals(entry.finalSourceType, options.final_source_type, description); |
| 50 | + assert_equals(entry.workerMatchedSourceType, options.matched_source_type, description); |
| 51 | + assert_equals(entry.workerFinalSourceType, options.final_source_type, description); |
52 | 52 |
|
53 | 53 | assert_greater_than(entry.workerRouterEvaluationStart, 0, description);
|
54 | 54 | switch (entry.matchedSouceType) {
|
|
60 | 60 | case 'cache':
|
61 | 61 | assert_equals(entry.workerStart, 0, description);
|
62 | 62 | assert_greater_than_equal(entry.workerCacheLookupStart, entry.workerRouterEvaluationStart, description);
|
63 |
| - if (entry.finalSourceType === 'cache') { |
64 |
| - assert_equals(entry.fetchStart, 0, description); |
| 63 | + if (entry.workerFinalSourceType === 'cache') { |
| 64 | + assert_equals(entry.fetchStart, entry.responseStart, description); |
65 | 65 | assert_less_than_equal(entry.workerCacheLookupStart, entry.responseStart, description);
|
66 | 66 | } else {
|
67 | 67 | assert_less_than_equal(entry.workerCacheLookupStart, entry.fetchStart, description);
|
68 | 68 | }
|
69 | 69 | break;
|
70 | 70 | case 'race-network-and-fetch':
|
71 | 71 | assert_equals(entry.workerCacheLookupStart, 0, description);
|
72 |
| - if (entry.finalSourceType === 'network') { |
| 72 | + if (entry.workerFinalSourceType === 'network') { |
73 | 73 | assert_equals(entry.workerStart, 0, description);
|
74 | 74 | assert_less_than_equal(entry.workerRouterEvaluationStart, entry.fetchStart, description);
|
75 | 75 | } else {
|
|
0 commit comments