| 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());
|
| + }
|
| +}
|
|
|