-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WPT: Create function to test BFCache not restored reason (#38038)
Added a function `assertBFCacheNotRestoredReasonsIfApplicable` that uses the `notRestoredReasons` API. Unlike the helper functions in performance timing API folder, this one only checks the main frame's reasons, which should be good (and concise) enough for most of the BFCache feature WPTs. If the API is not available, the function will return straightaway instead report assertion failure. This CL also modifies back-forward-cache-open-connection.window.js as an example usage of the helper function. Bug: 1408436 Change-Id: Ia6215ae88bc295b9c2d8c164aab78780ded3606c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4177970 Reviewed-by: Fergal Daly <[email protected]> Reviewed-by: Yuzu Saijo <[email protected]> Commit-Queue: Mingyu Lei <[email protected]> Cr-Commit-Position: refs/heads/main@{#1098432} Co-authored-by: Mingyu Lei <[email protected]>
- Loading branch information
1 parent
bbb24b5
commit 5362f7c
Showing
2 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters