OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |