Skip to content

Commit

Permalink
[WPT] Fix flakiness in /preload/preload-error.sub.html on Firefox
Browse files Browse the repository at this point in the history
By using verifyLoadedAndNoDoubleDownload().

Bug: 1319956
Change-Id: Ia0909bbbf9a014956a0b68f817a4a8bde216380f
  • Loading branch information
hiroshige-g authored and chromium-wpt-export-bot committed May 9, 2022
1 parent 548d0a6 commit 9263cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions preload/preload-error.sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// - load/error events fired on <link rel=preload>,
// - load/error events on main requests (e.g. <img>), and
// - preloads are reused for main requests
// (by verifyNumberOfResourceTimingEntries()).
// (by verifyLoadedAndNoDoubleDownload()).
//
// While this test expects <link rel=preload> error events only for network errors
// as specified in
Expand Down Expand Up @@ -120,10 +120,10 @@
}

// Wait also for <link rel=preload> events.
// This deflakes `verifyNumberOfResourceTimingEntries` results.
// This deflakes `verifyLoadedAndNoDoubleDownload` results.
await preloadPromise;

verifyNumberOfResourceTimingEntries(url, 1);
verifyLoadedAndNoDoubleDownload(url);
}, description + ': main');
}

Expand Down

0 comments on commit 9263cbe

Please sign in to comment.