Home | History | Annotate | Download | only in content_shell_apk
      1 // Copyright 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_apk;
      6 
      7 import android.test.suitebuilder.annotation.SmallTest;
      8 
      9 import org.chromium.base.test.util.Feature;
     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     @Feature({"Main"})
     20     public void testBaseStartup() throws Exception {
     21         ContentShellActivity activity = launchContentShellWithUrl(URL);
     22 
     23         // Make sure the activity was created as expected.
     24         assertNotNull(activity);
     25 
     26         // Make sure that the URL is set as expected.
     27         assertEquals(URL, activity.getActiveShell().getContentViewCore().getUrl());
     28     }
     29 }
     30