| // Copyright 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_apk; |
| |
| import android.test.suitebuilder.annotation.SmallTest; |
| |
| import org.chromium.base.test.util.Feature; |
| |
| /** |
| * 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 |
| @Feature({"Main"}) |
| 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.getActiveShell().getContentViewCore().getUrl()); |
| } |
| } |