Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: LayoutTests/http/tests/serviceworker/resource-timing.html

Issue 1166953007: Add workerReady timing for ServiceWorker controlled requests [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@workerReady
Patch Set: test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/timing/PerformanceResourceTiming.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resource-timing.html
diff --git a/LayoutTests/http/tests/serviceworker/resource-timing.html b/LayoutTests/http/tests/serviceworker/resource-timing.html
index 29600aa1b1732a0a7af1c74f978b6d73c9534173..e72801ae59336cefde5a6c28e0a228a7fe41a361 100644
--- a/LayoutTests/http/tests/serviceworker/resource-timing.html
+++ b/LayoutTests/http/tests/serviceworker/resource-timing.html
@@ -12,13 +12,11 @@ function verify(performance, resource, description) {
var entry = performance.getEntriesByName(resourceUrl(resource))[0];
assert_greater_than(entry.workerStart, 0, description);
assert_greater_than_equal(entry.workerStart, entry.startTime, description);
- assert_less_than_equal(entry.workerStart, entry.fetchStart, description);
- if (resource.indexOf('redirect.php') != -1) {
- assert_less_than_equal(entry.workerStart, entry.redirectStart,
- description);
- } else {
+ assert_less_than(entry.workerStart, entry.fetchStart, description);
+ if (resource.indexOf('redirect.php') != -1)
+ assert_less_than(entry.workerStart, entry.redirectStart, description);
+ else
assert_equals(entry.redirectStart, 0, description);
- }
}
async_test(function(t) {
« no previous file with comments | « no previous file | Source/core/timing/PerformanceResourceTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698