Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3134)

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java

Issue 2199223002: Remove unnecessary page loading in ContentShellActivity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bringing back the assertWaitForPatchScaleFactorMatch check in ContentViewZoomingTest Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
index 8206ff5d02ad5f38d3fb7b9a9e5918d92399bcc1..23675f990603955a28db12d66afaa65c8b28d943 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
@@ -121,12 +121,12 @@ public class ContentShellTestBase
updateFailureReason("Shell is null.");
return false;
}
- if (TextUtils.isEmpty(shell.getContentViewCore().getWebContents().getUrl())) {
- updateFailureReason("Shell's URL is empty or null.");
+ if (shell.isLoading()) {
+ updateFailureReason("Shell is still loading.");
return false;
}
- if (!shell.getContentViewCore().getWebContents().isReady()) {
- updateFailureReason("Shell's view is not ready.");
+ if (TextUtils.isEmpty(shell.getContentViewCore().getWebContents().getUrl())) {
+ updateFailureReason("Shell's URL is empty or null.");
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698