Commit 0f414e2f authored by Scott Violet's avatar Scott Violet Committed by Chromium LUCI CQ

weblayer: fix navigation related skew tests

isServedFromBackForwardCache was added in 89.

BUG=none
TEST=test only change

Change-Id: I0a3612fb7086977e2cb2c88e6428255f72f1875c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643937
Commit-Queue: Scott Violet <sky@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Auto-Submit: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845875}
parent fe44b3fa
...@@ -109,14 +109,13 @@ public class NavigationTest { ...@@ -109,14 +109,13 @@ public class NavigationTest {
mLoadError = navigation.getLoadError(); mLoadError = navigation.getLoadError();
mNavigationState = navigation.getState(); mNavigationState = navigation.getState();
mIsPageInitiatedNavigation = navigation.isPageInitiated(); mIsPageInitiatedNavigation = navigation.isPageInitiated();
mIsServedFromBackForwardCache = navigation.isServedFromBackForwardCache();
notifyCalled();
int majorVersion = TestThreadUtils.runOnUiThreadBlockingNoException( int majorVersion = TestThreadUtils.runOnUiThreadBlockingNoException(
() -> WebLayer.getSupportedMajorVersion(mActivityTestRule.getActivity())); () -> WebLayer.getSupportedMajorVersion(mActivityTestRule.getActivity()));
if (majorVersion >= 89) { if (majorVersion >= 89) {
mIsKnownProtocol = navigation.isKnownProtocol(); mIsKnownProtocol = navigation.isKnownProtocol();
mIsServedFromBackForwardCache = navigation.isServedFromBackForwardCache();
} }
notifyCalled();
} }
public void assertCalledWith(int currentCallCount, String uri) throws TimeoutException { public void assertCalledWith(int currentCallCount, String uri) throws TimeoutException {
......
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