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

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

Issue 1168403002: Deflake http/tests/serviceworker/resource-timing.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « LayoutTests/FlakyTests ('k') | no next file » | 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 e72801ae59336cefde5a6c28e0a228a7fe41a361..29600aa1b1732a0a7af1c74f978b6d73c9534173 100644
--- a/LayoutTests/http/tests/serviceworker/resource-timing.html
+++ b/LayoutTests/http/tests/serviceworker/resource-timing.html
@@ -12,11 +12,13 @@ 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(entry.workerStart, entry.fetchStart, description);
- if (resource.indexOf('redirect.php') != -1)
- assert_less_than(entry.workerStart, entry.redirectStart, description);
- else
+ 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_equals(entry.redirectStart, 0, description);
+ }
}
async_test(function(t) {
« no previous file with comments | « LayoutTests/FlakyTests ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698