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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.content_shell;
6
7 import android.app.Activity;
8 import android.test.ActivityInstrumentationTestCase2;
9 import android.test.suitebuilder.annotation.SmallTest;
10
11 /**
12 * Example test that just starts the content shell.
13 */
14 public class ContentShellUrlTest extends ContentShellTestBase {
15 // URL used for base tests.
16 private static final String URL = "data:text";
17
18 @SmallTest
19 public void testBaseStartup() throws Exception {
20 ContentShellActivity activity = launchContentShellWithUrl(URL);
21
22 // Make sure the activity was created as expected.
23 assertNotNull(activity);
24
25 // Make sure that the URL is set as expected.
26 assertEquals(URL, activity.getActiveShellView().getContentView().getUrl( ));
27 }
28 }
OLDNEW
« 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