Commit 48e8b40c authored by slamm@chromium.org's avatar slamm@chromium.org

Make record_wpr call test.WillNavigateToPage and test.DidNavigateToPage.

BUG=331607

Review URL: https://codereview.chromium.org/138643002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245333 0039d316-1c4b-4281-b951-d872f2087c98
parent 24495770
...@@ -44,9 +44,16 @@ class RecordPage(page_test.PageTest): ...@@ -44,9 +44,16 @@ class RecordPage(page_test.PageTest):
for action in compound_action: for action in compound_action:
action.CustomizeBrowserOptionsForPageSet(options) action.CustomizeBrowserOptionsForPageSet(options)
def WillNavigateToPage(self, _, tab): def WillNavigateToPage(self, page, tab):
"""Override to ensure all resources are fetched from network.""" """Override to ensure all resources are fetched from network."""
tab.ClearCache() tab.ClearCache()
if self.test:
self.test.WillNavigateToPage(page, tab)
def DidNavigateToPage(self, page, tab):
"""Forward the call to the test."""
if self.test:
self.test.DidNavigateToPage(page, tab)
def Run(self, options, page, tab, results): def Run(self, options, page, tab, results):
# When recording, sleep to catch any resources that load post-onload. # When recording, sleep to catch any resources that load post-onload.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment