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

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

Issue 2231433002: Revert of Remove unnecessary page loading in ContentShellActivity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 23675f990603955a28db12d66afaa65c8b28d943..8206ff5d02ad5f38d3fb7b9a9e5918d92399bcc1 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 @@
updateFailureReason("Shell is null.");
return false;
}
- if (shell.isLoading()) {
- updateFailureReason("Shell is still loading.");
+ if (TextUtils.isEmpty(shell.getContentViewCore().getWebContents().getUrl())) {
+ updateFailureReason("Shell's URL is empty or null.");
return false;
}
- if (TextUtils.isEmpty(shell.getContentViewCore().getWebContents().getUrl())) {
- updateFailureReason("Shell's URL is empty or null.");
+ if (!shell.getContentViewCore().getWebContents().isReady()) {
+ updateFailureReason("Shell's view is not ready.");
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698