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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java

Issue 10700167: Adds ContentShellTest.apk and very simple test. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/shell/android/javatests/src/org/chromium/content_shell/ContentShellTestBase.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java b/content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..370fd2bf008f09adfaede6e3a8753aa407eb8e9b
--- /dev/null
+++ b/content/shell/android/javatests/src/org/chromium/content_shell/ContentShellUrlTest.java
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.content_shell;
+
+import android.app.Activity;
+import android.test.ActivityInstrumentationTestCase2;
+import android.test.suitebuilder.annotation.SmallTest;
+
+/**
+ * Example test that just starts the content shell.
+ */
+public class ContentShellUrlTest extends ContentShellTestBase {
+ // URL used for base tests.
+ private static final String URL = "data:text";
+
+ @SmallTest
+ public void testBaseStartup() throws Exception {
+ ContentShellActivity activity = launchContentShellWithUrl(URL);
+
+ // Make sure the activity was created as expected.
+ assertNotNull(activity);
+
+ // Make sure that the URL is set as expected.
+ assertEquals(URL, activity.getActiveShellView().getContentView().getUrl());
+ }
+}
« no previous file with comments | « content/shell/android/javatests/src/org/chromium/content_shell/ContentShellTestBase.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698