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

Unified Diff: third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html

Issue 2612003002: Media Session: use dictionary instead of an interface for MediaImage. (Closed)
Patch Set: apply spec changes and comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html
diff --git a/third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html b/third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html
index 185b81be8e245bbdcddfedbe347a1a84f64b2b43..5350c48ca09a1be9866221f3f09e97883d2c85fc 100644
--- a/third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html
+++ b/third_party/WebKit/LayoutTests/media/mediasession/mojo/metadata-async.html
@@ -54,9 +54,9 @@ async_test(t => {
window.navigator.mediaSession.metadata.title = 'new title';
window.navigator.mediaSession.metadata.album = 'new album';
window.navigator.mediaSession.metadata.artist = 'new artist';
- var image = new MediaImage(
- { src: 'http://example.com/', sizes: '40x40', type: 'image/png' });
- window.navigator.mediaSession.metadata.artwork = [ image ];
+ window.navigator.mediaSession.metadata.artwork = [
+ { src: 'http://example.com/', sizes: '40x40', type: 'image/png' }
+ ];
// This two last changes are made asynchronously and will go in different
// mojo calls.

Powered by Google App Engine
This is Rietveld 408576698