wpt icon indicating copy to clipboard operation
wpt copied to clipboard

[eme] Migrate remaining Google tests to main framework

Open mwatson2 opened this issue 10 years ago • 26 comments

The following are in need of migration. Please reply to this issue to claim some:

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-keystatuses-multiple-sessions.html
  • encrypted-media-keystatuses-multiple-updates.html
  • encrypted-media-onencrypted.html
  • encrypted-media-playback-encrypted-and-clear-sources.html
  • encrypted-media-playback-multiple-sessions.html
  • encrypted-media-requestmediakeysystemaccess.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-setmediakeys-again-after-playback.html
  • encrypted-media-setmediakeys-again-after-resetting-src.html
  • encrypted-media-setmediakeys-at-same-time.html
  • encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html
  • encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html
  • encrypted-media-setmediakeys-to-multiple-video-elements.html
  • encrypted-media-setmediakeys.html
  • encrypted-media-syntax.html
  • encrypted-media-unique-origin.html
  • encrypted-media-update-disallowed-input.html
  • encrypted-media-waiting-for-a-key.html

mwatson2 avatar Aug 25 '16 17:08 mwatson2

I will start off by migrating setmediakeys tests:

  • encrypted-media-setmediakeys-again-after-playback.html
  • encrypted-media-setmediakeys-again-after-resetting-src.html
  • encrypted-media-setmediakeys-at-same-time.html
  • encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html
  • encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html
  • encrypted-media-setmediakeys-to-multiple-video-elements.html
  • encrypted-media-setmediakeys.html

sukhmal avatar Aug 29 '16 18:08 sukhmal

These then are remaining for someone to migrate:

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-keystatuses-multiple-sessions.html
  • encrypted-media-keystatuses-multiple-updates.html
  • encrypted-media-onencrypted.html
  • encrypted-media-playback-encrypted-and-clear-sources.html
  • encrypted-media-playback-multiple-sessions.html
  • encrypted-media-requestmediakeysystemaccess.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-syntax.html
  • encrypted-media-unique-origin.html
  • encrypted-media-update-disallowed-input.html
  • encrypted-media-waiting-for-a-key.html

jdsmith3000 avatar Aug 30 '16 20:08 jdsmith3000

I will look at:

  • encrypted-media-keystatuses-multiple-sessions.html
  • encrypted-media-keystatuses-multiple-updates.html

mwatson2 avatar Sep 15 '16 20:09 mwatson2

Actually, encrypted-media-keystatuses-multiple-sessions.html has already been done.

mwatson2 avatar Sep 15 '16 20:09 mwatson2

encrypted-media-keystatuses-multiple-updates.html tests that a single clearkey session can receive two update() calls each adding a single key, after only a single license-request message has been generated.

I don't believe any of the DRMs support this flow.

So, then I would propose that we do not need to migrate this test (see #3737)

mwatson2 avatar Sep 15 '16 20:09 mwatson2

I will look at:

  • encrypted-media-playback-encrypted-and-clear-sources.html
  • encrypted-media-playback-multiple-sessions.html

mwatson2 avatar Sep 15 '16 20:09 mwatson2

Regarding https://github.com/w3c/web-platform-tests/issues/3583#issuecomment-247439997, encrypted-media-keystatuses-multiple-updates.html is probably testing that the keys in the session can change. The test cheats a little because it is easy to create a Clear Key license. However, DRMs might support this flow in a (non-continuous) key rotation scenario. Writing that test would require support from the test server.

ddorwin avatar Sep 15 '16 22:09 ddorwin

@ddorwin Do you mean the keys within a single session ? This is only possible to test if either: (a) the DRM supports unsolicited provision of new keys (and our server supports creation of such messages), or (b) the DRM fires new license-request messages itself, which our server can respond to.

I had imagined that one form of key rotation is supported by the DRM triggering a new license-request when the expiration time of its existing keys approaches. Does Widevine support this ? We would need to switch to the JWT authorization approach, since the test dummy approach doesn't give us very short-lived keys.

mwatson2 avatar Sep 15 '16 23:09 mwatson2

Yes. I think (b) but with "license-renewal" is the likely scenario. Yes, I believe this is supported.

This isn't a high priority, and I'm fine with deferring this work (to a separate bug and marking the text as done for now). I just wanted to point out that the scenario this test is trying to cover is valid for Key Systems other than Clear Key.

ddorwin avatar Sep 15 '16 23:09 ddorwin

Ok, I filed #3740

mwatson2 avatar Sep 15 '16 23:09 mwatson2

encrypted-media-playback-encrypted-and-clear-sources.html is addressed by #3739.

I believe encrypted-media-playback-multiple-sessions.html may already be addresed by #3629

mwatson2 avatar Sep 15 '16 23:09 mwatson2

Indeed encrypted-media-playback-multiple-sessions.html is already addressed by #3629 (#3745 to move it).

mwatson2 avatar Sep 16 '16 20:09 mwatson2

I will look at encrypted-media-requestmediakeysystemaccess.html next. The remaining tests to be migrated are:

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-onencrypted.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-syntax.html
  • encrypted-media-unique-origin.html
  • encrypted-media-update-disallowed-input.html
  • encrypted-media-waiting-for-a-key.html

mwatson2 avatar Sep 16 '16 20:09 mwatson2

PR #3747 for encrypted-media-requestmediakeysystemaccess.html

mwatson2 avatar Sep 18 '16 17:09 mwatson2

Stefan Pham (@squapp) is working on:

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-onencrypted.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-unique-origin.html

mwatson2 avatar Sep 21 '16 09:09 mwatson2

PR #3790 for

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-onencrypted.html
  • encrypted-media-unique-origin.html

Working on these next:

  • encrypted-media-waiting-for-a-key.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-update-disallowed-input.html

squapp avatar Sep 21 '16 15:09 squapp

PR #3795 for

  • encrypted-media-setmediakeys-again-after-playback.html
  • encrypted-media-setmediakeys-again-after-resetting-src.html
  • encrypted-media-setmediakeys-at-same-time.html
  • encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html
  • encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html
  • encrypted-media-setmediakeys-to-multiple-video-elements.html
  • encrypted-media-setmediakeys.html

sukhmal avatar Sep 22 '16 01:09 sukhmal

PR #3799 for

  • encrypted-media-waiting-for-a-key.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-update-disallowed-input.html

Next (and last test):

  • encrypted-media-syntax.html

squapp avatar Sep 22 '16 15:09 squapp

Since the last file is in work to be migrated, I'd like to move the remaining Google tests into a disabled subfolder, and comment out the test harness lines so they don't run. Okay?

These files are currently still in the Google folder:

  • encrypted-media-clear-key-invalid-license.html
  • encrypted-media-clearkey-update-non-ascii-input.html
  • encrypted-media-onencrypted.html
  • encrypted-media-reset-src-after-setmediakeys.html
  • encrypted-media-session-closed-event.html
  • encrypted-media-setmediakeys-again-after-playback.html
  • encrypted-media-setmediakeys-again-after-resetting-src.html
  • encrypted-media-setmediakeys-at-same-time.html
  • encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html
  • encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html
  • encrypted-media-setmediakeys-to-multiple-video-elements.html
  • encrypted-media-setmediakeys.html
  • encrypted-media-syntax.html
  • encrypted-media-unique-origin.html
  • encrypted-media-update-disallowed-input.html
  • encrypted-media-utils.js
  • encrypted-media-waiting-for-a-key.html

jdsmith3000 avatar Sep 27 '16 20:09 jdsmith3000

@mwatson2 @sukhmal Any objections to pulling these now? I believe they only pass on Chrome, and it would be best to focus on the migrated tests now.

jdsmith3000 avatar Sep 29 '16 00:09 jdsmith3000