-
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
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
- Loading branch information
1 parent
ec2b326
commit 3767e01
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