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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java

Issue 12047068: Add apk for running content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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.browser; 5 package org.chromium.content.browser;
6 6
7 import android.test.suitebuilder.annotation.MediumTest; 7 import android.test.suitebuilder.annotation.MediumTest;
8 8
9 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
10 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; 10 import org.chromium.content.browser.test.util.TestCallbackHelperContainer;
11 import org.chromium.content_shell.ContentShellActivity;
12 import org.chromium.content_shell.ContentShellTestBase; 11 import org.chromium.content_shell.ContentShellTestBase;
12 import org.chromium.content_shell_apk.ContentShellActivity;
13 13
14 /** 14 /**
15 * Tests for various aspects of navigation. 15 * Tests for various aspects of navigation.
16 */ 16 */
17 public class NavigationTest extends ContentShellTestBase { 17 public class NavigationTest extends ContentShellTestBase {
18 18
19 private static final String URL_1 = "data:text/html;utf-8,<html>1</html>"; 19 private static final String URL_1 = "data:text/html;utf-8,<html>1</html>";
20 private static final String URL_2 = "data:text/html;utf-8,<html>2</html>"; 20 private static final String URL_2 = "data:text/html;utf-8,<html>2</html>";
21 private static final String URL_3 = "data:text/html;utf-8,<html>3</html>"; 21 private static final String URL_3 = "data:text/html;utf-8,<html>3</html>";
22 private static final String URL_4 = "data:text/html;utf-8,<html>4</html>"; 22 private static final String URL_4 = "data:text/html;utf-8,<html>4</html>";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 assertEquals(URL_1, history.getEntryAtIndex(2).getUrl()); 75 assertEquals(URL_1, history.getEntryAtIndex(2).getUrl());
76 76
77 history = contentViewCore.getDirectedNavigationHistory(true, 4); 77 history = contentViewCore.getDirectedNavigationHistory(true, 4);
78 assertEquals(3, history.getEntryCount()); 78 assertEquals(3, history.getEntryCount());
79 assertEquals(URL_5, history.getEntryAtIndex(0).getUrl()); 79 assertEquals(URL_5, history.getEntryAtIndex(0).getUrl());
80 assertEquals(URL_6, history.getEntryAtIndex(1).getUrl()); 80 assertEquals(URL_6, history.getEntryAtIndex(1).getUrl());
81 assertEquals(URL_7, history.getEntryAtIndex(2).getUrl()); 81 assertEquals(URL_7, history.getEntryAtIndex(2).getUrl());
82 } 82 }
83 83
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698