OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content_shell; | 5 package org.chromium.content_shell; |
6 | 6 |
7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.test.suitebuilder.annotation.SmallTest; |
8 | 8 |
9 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
| 10 import org.chromium.content_shell_apk.ContentShellActivity; |
10 | 11 |
11 /** | 12 /** |
12 * Example test that just starts the content shell. | 13 * Example test that just starts the content shell. |
13 */ | 14 */ |
14 public class ContentShellUrlTest extends ContentShellTestBase { | 15 public class ContentShellUrlTest extends ContentShellTestBase { |
15 // URL used for base tests. | 16 // URL used for base tests. |
16 private static final String URL = "data:text"; | 17 private static final String URL = "data:text"; |
17 | 18 |
18 @SmallTest | 19 @SmallTest |
19 @Feature({"Main"}) | 20 @Feature({"Main"}) |
20 public void testBaseStartup() throws Exception { | 21 public void testBaseStartup() throws Exception { |
21 ContentShellActivity activity = launchContentShellWithUrl(URL); | 22 ContentShellActivity activity = launchContentShellWithUrl(URL); |
22 | 23 |
23 // Make sure the activity was created as expected. | 24 // Make sure the activity was created as expected. |
24 assertNotNull(activity); | 25 assertNotNull(activity); |
25 | 26 |
26 // Make sure that the URL is set as expected. | 27 // Make sure that the URL is set as expected. |
27 assertEquals(URL, activity.getActiveShell().getContentView().getUrl()); | 28 assertEquals(URL, activity.getActiveShell().getContentView().getUrl()); |
28 } | 29 } |
29 } | 30 } |
OLD | NEW |