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

Unified Diff: third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html

Issue 2497493005: Reordering MediaSessionAction seek backward/forward (Closed)
Patch Set: rebased Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-set-handler-notifies-service.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html
diff --git a/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html b/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html
index 7d1ecca9c4337c2fe2c95f9b35e6013bab058a19..c4d87f764175293f7a8c2b12bb68c5b4489735fd 100644
--- a/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html
+++ b/third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html
@@ -15,8 +15,8 @@ var expectations = [
"playpause",
"previoustrack",
"nexttrack",
- "seekforward",
"seekbackward",
+ "seekforward",
];
var nextExpectation = 0;
@@ -37,13 +37,13 @@ function runTests(t) {
window.navigator.mediaSession.onseekforward = t.step_func(checkExpectation.bind(null, t));
window.navigator.mediaSession.onseekbackward = t.step_func(checkExpectation.bind(null, t));
- mock.getClient().didReceiveAction(MOJOM_ACTION_PLAY);
- mock.getClient().didReceiveAction(MOJOM_ACTION_PAUSE);
- mock.getClient().didReceiveAction(MOJOM_ACTION_PLAY_PAUSE);
- mock.getClient().didReceiveAction(MOJOM_ACTION_PREVIOUS_TRACK);
- mock.getClient().didReceiveAction(MOJOM_ACTION_NEXT_TRACK);
- mock.getClient().didReceiveAction(MOJOM_ACTION_SEEK_FORWARD);
- mock.getClient().didReceiveAction(MOJOM_ACTION_SEEK_BACKWARD);
+ mock.getClient().didReceiveAction(MediaSessionAction.PLAY);
+ mock.getClient().didReceiveAction(MediaSessionAction.PAUSE);
+ mock.getClient().didReceiveAction(MediaSessionAction.PLAY_PAUSE);
+ mock.getClient().didReceiveAction(MediaSessionAction.PREVIOUS_TRACK);
+ mock.getClient().didReceiveAction(MediaSessionAction.NEXT_TRACK);
+ mock.getClient().didReceiveAction(MediaSessionAction.SEEK_BACKWARD);
+ mock.getClient().didReceiveAction(MediaSessionAction.SEEK_FORWARD);
}
// Use async_test to do asynchronous setup since setup() only works for
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-set-handler-notifies-service.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698