Skip to content

Commit

Permalink
Enable MediaSession WPT
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Nov 20, 2019
1 parent 59f22ab commit ba48e54
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/wpt/include.ini
Expand Up @@ -119,6 +119,8 @@ skip: true
skip: true
[js]
skip: false
[mediasession]
skip: false
[navigation-timing]
skip: false
[offscreen-canvas]
Expand Down
16 changes: 16 additions & 0 deletions tests/wpt/metadata/mediasession/idlharness.window.js.ini
@@ -0,0 +1,16 @@
[idlharness.window.html]
[MediaSession interface: calling setPositionState(MediaPositionState) on navigator.mediaSession with too few arguments must throw TypeError]
expected: FAIL

[MediaSession interface: navigator.mediaSession must inherit property "setPositionState(MediaPositionState)" with the proper type]
expected: FAIL

[MediaSession interface: operation setPositionState(MediaPositionState)]
expected: FAIL

[MediaMetadata interface: attribute artwork]
expected: FAIL

[MediaMetadata interface: new MediaMetadata() must inherit property "artwork" with the proper type]
expected: FAIL

43 changes: 43 additions & 0 deletions tests/wpt/metadata/mediasession/mediametadata.html.ini
@@ -0,0 +1,43 @@
[mediametadata.html]
[Test that MediaMetadata.artwork is Frozen]
expected: FAIL

[Test that MediaMetadat.artwork can't be modified]
expected: FAIL
[Test that resetting metadata to null is reflected]
expected: FAIL
[Test the default values for MediaMetadata with empty init dictionary]
expected: FAIL
[Test MediaImage default values]
expected: FAIL
[Test that mediaSession.metadata is properly set]
expected: FAIL
[Test that changes to metadata propagate properly]
expected: FAIL
[Test that MediaMetadata.artwork returns parsed urls]
expected: FAIL
[Test the different values allowed in MediaMetadata init dictionary]
expected: FAIL
[Test the default values for MediaMetadata with no init dictionary]
expected: FAIL
[Test that MediaImage.src is required]
expected: FAIL
[Test that MediaMetadata throws when setting an invalid url]
expected: FAIL
[Test that MediaMetadata.artwork will not expose unknown properties]
expected: FAIL
[Test that the base URL of MediaImage is the base URL of entry setting object]
expected: FAIL
19 changes: 19 additions & 0 deletions tests/wpt/metadata/mediasession/positionstate.html.ini
@@ -0,0 +1,19 @@
[positionstate.html]
[Test setPositionState with a null value]
expected: FAIL

[Test setPositionState with zero duration]
expected: FAIL

[Test setPositionState with a valid value for forward playback]
expected: FAIL

[Test setPositionState with optional position]
expected: FAIL

[Test setPositionState with only duration]
expected: FAIL

[Test setPositionState with optional playback rate]
expected: FAIL

2 changes: 2 additions & 0 deletions tests/wpt/mozilla/tests/mozilla/interfaces.html
Expand Up @@ -166,8 +166,10 @@
"MediaElementAudioSourceNode",
"MediaError",
"MediaList",
"MediaMetadata",
"MediaQueryList",
"MediaQueryListEvent",
"MediaSession",
"MessageChannel",
"MessageEvent",
"MessagePort",
Expand Down

0 comments on commit ba48e54

Please sign in to comment.