| Index: chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationActionsUpdatedTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationActionsUpdatedTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationActionsUpdatedTest.java
|
| index 105203e8c9beb597d0d43b9dc36ed4ff6bc67f54..3660c91b3971afa13ff475af2cdfa23883d3cf0a 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationActionsUpdatedTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationActionsUpdatedTest.java
|
| @@ -28,7 +28,7 @@ import java.util.Set;
|
| */
|
| public class NotificationActionsUpdatedTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| private static final int NOTIFICATION_ID = R.id.media_playback_notification;
|
| - private static final String SIMPLE_PAGE_URL = "/simple_page.html";
|
| + private static final String SIMPLE_PAGE_URL = "/content/test/data/simple_page.html";
|
|
|
| private Tab mTab;
|
| private EmbeddedTestServer mTestServer;
|
| @@ -75,14 +75,15 @@ public class NotificationActionsUpdatedTest extends ChromeActivityTestCaseBase<C
|
| }
|
|
|
| @SmallTest
|
| - public void testActionsPersistAfterInPageNavigation() throws Throwable {
|
| + public void testActionsPersistAfterSamePageNavigation() throws Throwable {
|
| ensureTestServer();
|
| loadUrl(mTestServer.getURL(SIMPLE_PAGE_URL));
|
| simulateMediaSessionActionsChanged(mTab, buildActions());
|
| simulateMediaSessionStateChanged(mTab, true, false);
|
| assertActionsMatch(buildActions());
|
|
|
| - loadUrl(mTestServer.getURL(SIMPLE_PAGE_URL + "#some-anchor"));
|
| + NotificationTestUtils.simulateSamePageNavigation(
|
| + getInstrumentation(), mTab, mTestServer.getURL(SIMPLE_PAGE_URL));
|
| assertActionsMatch(buildActions());
|
| }
|
|
|
|
|