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

Side by Side Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java

Issue 2708243004: Auto convert content shell tests to JUnit4 (Closed)
Patch Set: rebase Created 3 years, 9 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_apk; 5 package org.chromium.content_shell_apk;
6 6
7 import android.support.test.filters.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.junit.Assert; 9 import org.junit.Assert;
10 import org.junit.Rule; 10 import org.junit.Rule;
11 import org.junit.Test; 11 import org.junit.Test;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 mActivityTestRule.loadNewShell(TEST_PAGE_2); 48 mActivityTestRule.loadNewShell(TEST_PAGE_2);
49 Assert.assertEquals(TEST_PAGE_2, 49 Assert.assertEquals(TEST_PAGE_2,
50 activity.getActiveShell().getContentViewCore().getWebContents(). getUrl()); 50 activity.getActiveShell().getContentViewCore().getWebContents(). getUrl());
51 51
52 Assert.assertNotSame(previousActiveShell, activity.getActiveShell()); 52 Assert.assertNotSame(previousActiveShell, activity.getActiveShell());
53 Assert.assertTrue(previousActiveShell.isDestroyed()); 53 Assert.assertTrue(previousActiveShell.isDestroyed());
54 Assert.assertFalse(previousActiveShell.getContentViewCore().isAlive()); 54 Assert.assertFalse(previousActiveShell.getContentViewCore().isAlive());
55 } 55 }
56 56
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698