From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../encrypted-media-async-creation-with-gc.html | 41 + .../encrypted-media-async-setcert-with-gc.html | 32 + ...pted-media-lifetime-mediakeys-with-session.html | 104 ++ .../encrypted-media-lifetime-mediakeys.html | 59 ++ ...d-media-lifetime-mediakeysession-reference.html | 157 +++ ...fetime-mediakeysession-release-noreference.html | 131 +++ ...ted-media-lifetime-mediakeysession-release.html | 118 +++ ...ncrypted-media-lifetime-multiple-mediakeys.html | 131 +++ .../encrypted-media-lifetime-reload.html | 103 ++ .../encrypted-media-check-init-data-type.html | 51 + .../encrypted-media-clear-key-invalid-license.html | 47 + ...pted-media-clearkey-update-non-ascii-input.html | 53 + .../encrypted-media-events.html | 65 ++ ...ed-media-generate-request-disallowed-input.html | 107 ++ ...rypted-media-keystatuses-multiple-sessions.html | 121 +++ ...crypted-media-keystatuses-multiple-updates.html | 87 ++ .../encrypted-media-keystatuses.html | 174 ++++ ...ted-media-not-callable-after-createsession.html | 67 ++ .../encrypted-media-onencrypted.html | 44 + ...media-playback-encrypted-and-clear-sources.html | 130 +++ ...encrypted-media-playback-multiple-sessions.html | 143 +++ ...pted-media-playback-setmediakeys-after-src.html | 96 ++ ...ted-media-playback-setmediakeys-before-src.html | 96 ++ .../encrypted-media-playback-two-videos.html | 90 ++ ...ncrypted-media-requestmediakeysystemaccess.html | 322 +++++++ ...crypted-media-reset-src-after-setmediakeys.html | 67 ++ .../encrypted-media-session-closed-event.html | 51 + ...ed-media-setmediakeys-again-after-playback.html | 48 + ...dia-setmediakeys-again-after-resetting-src.html | 44 + .../encrypted-media-setmediakeys-at-same-time.html | 109 +++ ...ys-multiple-times-with-different-mediakeys.html | 83 ++ ...eys-multiple-times-with-the-same-mediakeys.html | 50 + ...ia-setmediakeys-to-multiple-video-elements.html | 50 + .../encrypted-media-setmediakeys.html | 59 ++ .../encrypted-media-syntax.html | 1017 ++++++++++++++++++++ .../encrypted-media-unique-origin.html | 79 ++ .../encrypted-media-update-disallowed-input.html | 73 ++ .../encrypted-media-utils.js | 333 +++++++ .../encrypted-media-waiting-for-a-key.html | 168 ++++ .../webm/test-encrypted-different-av-keys.webm | Bin 0 -> 221378 bytes .../Google/webm/test-encrypted.webm | Bin 0 -> 223402 bytes .../tests/encrypted-media/Google/webm/test.webm | Bin 0 -> 219448 bytes 42 files changed, 4800 insertions(+) create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-creation-with-gc.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-setcert-with-gc.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys-with-session.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-reference.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release-noreference.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-multiple-mediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-reload.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-check-init-data-type.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clear-key-invalid-license.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clearkey-update-non-ascii-input.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-events.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-generate-request-disallowed-input.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-sessions.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-updates.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-not-callable-after-createsession.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-onencrypted.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-encrypted-and-clear-sources.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-multiple-sessions.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-after-src.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-before-src.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-two-videos.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-requestmediakeysystemaccess.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-reset-src-after-setmediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-session-closed-event.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-playback.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-resetting-src.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-at-same-time.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-to-multiple-video-elements.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-syntax.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-unique-origin.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-update-disallowed-input.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-utils.js create mode 100644 testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-waiting-for-a-key.html create mode 100644 testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted-different-av-keys.webm create mode 100644 testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted.webm create mode 100644 testing/web-platform/tests/encrypted-media/Google/webm/test.webm (limited to 'testing/web-platform/tests/encrypted-media/Google') diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-creation-with-gc.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-creation-with-gc.html new file mode 100644 index 000000000..4dd705f9f --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-creation-with-gc.html @@ -0,0 +1,41 @@ + + + + + Test asynchronous creation of MediaKeys and MediaKeySession while running garbage collection + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-setcert-with-gc.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-setcert-with-gc.html new file mode 100644 index 000000000..4da562894 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-async-setcert-with-gc.html @@ -0,0 +1,32 @@ + + + + + Test asynchronous setServerCertificate while running garbage collection + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys-with-session.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys-with-session.html new file mode 100644 index 000000000..a892b969c --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys-with-session.html @@ -0,0 +1,104 @@ + + + + + Test MediaKeys lifetime when adding a session + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys.html new file mode 100644 index 000000000..b8e79ac8b --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeys.html @@ -0,0 +1,59 @@ + + + + + Test MediaKeys lifetime + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-reference.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-reference.html new file mode 100644 index 000000000..4b8ad1b46 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-reference.html @@ -0,0 +1,157 @@ + + + + + Test MediaKeySession lifetime without release() + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release-noreference.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release-noreference.html new file mode 100644 index 000000000..a962844a3 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release-noreference.html @@ -0,0 +1,131 @@ + + + + + Test MediaKeySession lifetime after release() without references + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release.html new file mode 100644 index 000000000..626526761 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-mediakeysession-release.html @@ -0,0 +1,118 @@ + + + + + MediaKeySession lifetime after release() + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-multiple-mediakeys.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-multiple-mediakeys.html new file mode 100644 index 000000000..42638a069 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-multiple-mediakeys.html @@ -0,0 +1,131 @@ + + + + + Test multiple MediaKeys lifetimes + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-reload.html b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-reload.html new file mode 100644 index 000000000..b2f8ffb1f --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/chromium_specific_disabled/encrypted-media-lifetime-reload.html @@ -0,0 +1,103 @@ + + + + + Reloading during encrypted media playback + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-check-init-data-type.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-check-init-data-type.html new file mode 100644 index 000000000..f71cf48a8 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-check-init-data-type.html @@ -0,0 +1,51 @@ + + + + + Test support of different initDataTypes. + + + + +
+ + + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clear-key-invalid-license.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clear-key-invalid-license.html new file mode 100644 index 000000000..f145dfad7 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clear-key-invalid-license.html @@ -0,0 +1,47 @@ + + + + + Invalid Clear Key License. + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clearkey-update-non-ascii-input.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clearkey-update-non-ascii-input.html new file mode 100644 index 000000000..cf237a7da --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-clearkey-update-non-ascii-input.html @@ -0,0 +1,53 @@ + + + + + Test Clear Key handling of non-ASCII responses for update(). + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-events.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-events.html new file mode 100644 index 000000000..a2a70f169 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-events.html @@ -0,0 +1,65 @@ + + + + + Verify v2 events + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-generate-request-disallowed-input.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-generate-request-disallowed-input.html new file mode 100644 index 000000000..53e5c95b7 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-generate-request-disallowed-input.html @@ -0,0 +1,107 @@ + + + + + Test handling of invalid initData for generateRequest(). + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-sessions.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-sessions.html new file mode 100644 index 000000000..3ee4e8c54 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-sessions.html @@ -0,0 +1,121 @@ + + + + + Verify MediaKeySession.keyStatuses with multiple sessions + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-updates.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-updates.html new file mode 100644 index 000000000..809045d99 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses-multiple-updates.html @@ -0,0 +1,87 @@ + + + + + Verify MediaKeySession.keyStatuses with multiple updates + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses.html new file mode 100644 index 000000000..043bc1322 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-keystatuses.html @@ -0,0 +1,174 @@ + + + + + Verify MediaKeySession.keyStatuses + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-not-callable-after-createsession.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-not-callable-after-createsession.html new file mode 100644 index 000000000..9b92c6905 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-not-callable-after-createsession.html @@ -0,0 +1,67 @@ + + + + + Test MediaKeySession not callable immediately after CreateSession(). + + + + +
+ + + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-onencrypted.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-onencrypted.html new file mode 100644 index 000000000..ad408f0f3 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-onencrypted.html @@ -0,0 +1,44 @@ + + + + + onencrypted + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-encrypted-and-clear-sources.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-encrypted-and-clear-sources.html new file mode 100644 index 000000000..495ba4188 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-encrypted-and-clear-sources.html @@ -0,0 +1,130 @@ + + + + + Multiple playbacks alternating between encrypted and clear sources. + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-multiple-sessions.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-multiple-sessions.html new file mode 100644 index 000000000..8bf94e13c --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-multiple-sessions.html @@ -0,0 +1,143 @@ + + + + + Clear Key Playback with Multiple Sessions + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-after-src.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-after-src.html new file mode 100644 index 000000000..2a8cac486 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-after-src.html @@ -0,0 +1,96 @@ + + + + + Clear Key Playback + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-before-src.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-before-src.html new file mode 100644 index 000000000..84100570c --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-setmediakeys-before-src.html @@ -0,0 +1,96 @@ + + + + + Clear Key Playback + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-two-videos.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-two-videos.html new file mode 100644 index 000000000..0bdc7757b --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-playback-two-videos.html @@ -0,0 +1,90 @@ + + + + + Clear Key Play Two Videos At Same Time + + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-requestmediakeysystemaccess.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-requestmediakeysystemaccess.html new file mode 100644 index 000000000..456f37f57 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-requestmediakeysystemaccess.html @@ -0,0 +1,322 @@ + + + + + Test navigator.requestMediaKeySystemAccess() + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-reset-src-after-setmediakeys.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-reset-src-after-setmediakeys.html new file mode 100644 index 000000000..15c91a001 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-reset-src-after-setmediakeys.html @@ -0,0 +1,67 @@ + + + + + Reset src after setMediaKeys() + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-session-closed-event.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-session-closed-event.html new file mode 100644 index 000000000..577047a25 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-session-closed-event.html @@ -0,0 +1,51 @@ + + + + + Test MediaKeySession closed event + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-playback.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-playback.html new file mode 100644 index 000000000..29f53b31d --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-playback.html @@ -0,0 +1,48 @@ + + + + + setMediaKeys() again after playback + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-resetting-src.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-resetting-src.html new file mode 100644 index 000000000..8f6891b79 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-again-after-resetting-src.html @@ -0,0 +1,44 @@ + + + + + setMediaKeys() again after resetting src + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-at-same-time.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-at-same-time.html new file mode 100644 index 000000000..01fd7b194 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-at-same-time.html @@ -0,0 +1,109 @@ + + + + + Set MediaKeys multiple times in parallel + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html new file mode 100644 index 000000000..31cc61079 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-different-mediakeys.html @@ -0,0 +1,83 @@ + + + + + setMediaKeys() multiple times with different MediaKeys. + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html new file mode 100644 index 000000000..64ed315e0 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-multiple-times-with-the-same-mediakeys.html @@ -0,0 +1,50 @@ + + + + + setMediaKeys() multiple times with the same MediaKeys. + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-to-multiple-video-elements.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-to-multiple-video-elements.html new file mode 100644 index 000000000..fb8386e8c --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys-to-multiple-video-elements.html @@ -0,0 +1,50 @@ + + + + + setMediaKeys() on multiple video elements. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys.html new file mode 100644 index 000000000..96b0fed97 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-setmediakeys.html @@ -0,0 +1,59 @@ + + + + + setMediaKeys + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-syntax.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-syntax.html new file mode 100644 index 000000000..5c4c667cb --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-syntax.html @@ -0,0 +1,1017 @@ + + + + + Test EME syntax + + + + + + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-unique-origin.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-unique-origin.html new file mode 100644 index 000000000..ffb67679f --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-unique-origin.html @@ -0,0 +1,79 @@ + + + + + Unique origin is unable to create MediaKeys + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-update-disallowed-input.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-update-disallowed-input.html new file mode 100644 index 000000000..e829a885c --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-update-disallowed-input.html @@ -0,0 +1,73 @@ + + + + + Test handling of invalid responses for update(). + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-utils.js b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-utils.js new file mode 100644 index 000000000..5fbcdf689 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-utils.js @@ -0,0 +1,333 @@ + + +var consoleDiv = null; + +function consoleWrite(text) +{ + if (!consoleDiv && document.body) { + consoleDiv = document.createElement('div'); + document.body.appendChild(consoleDiv); + } + var span = document.createElement('span'); + span.appendChild(document.createTextNode(text)); + span.appendChild(document.createElement('br')); + consoleDiv.appendChild(span); +} + +// Returns a promise that is fulfilled with true if |initDataType| is supported, +// or false if not. +function isInitDataTypeSupported(initDataType) +{ + return navigator.requestMediaKeySystemAccess( + "org.w3.clearkey", getSimpleConfigurationForInitDataType(initDataType)) + .then(function() { return true; }, function() { return false; }); +} + +function getInitData(initDataType) +{ + if (initDataType == 'webm') { + return new Uint8Array([ + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F + ]); + } + + if (initDataType == 'cenc') { + return new Uint8Array([ + 0x00, 0x00, 0x00, 0x34, // size = 52 + 0x70, 0x73, 0x73, 0x68, // 'pssh' + 0x01, // version = 1 + 0x00, 0x00, 0x00, // flags + 0x10, 0x77, 0xEF, 0xEC, 0xC0, 0xB2, 0x4D, 0x02, // Common SystemID + 0xAC, 0xE3, 0x3C, 0x1E, 0x52, 0xE2, 0xFB, 0x4B, + 0x00, 0x00, 0x00, 0x01, // key count + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // key + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, + 0x00, 0x00, 0x00, 0x00 // datasize + ]); + } + + if (initDataType == 'keyids') { + var keyId = new Uint8Array([ + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F + ]); + return stringToUint8Array(createKeyIDs(keyId)); + } + + throw 'initDataType ' + initDataType + ' not supported.'; +} + +// Returns an array of audioCapabilities that includes entries for a set of +// codecs that should cover all user agents. +function getPossibleAudioCapabilities() +{ + return [ + { contentType: 'audio/mp4; codecs="mp4a.40.2"' }, + { contentType: 'audio/webm; codecs="opus"' }, + ]; +} + +// Returns a trivial MediaKeySystemConfiguration that should be accepted, +// possibly as a subset of the specified capabilities, by all user agents. +function getSimpleConfiguration() +{ + return [ { + initDataTypes : [ 'webm', 'cenc', 'keyids' ], + audioCapabilities: getPossibleAudioCapabilities() + } ]; +} + +// Returns a MediaKeySystemConfiguration for |initDataType| that should be +// accepted, possibly as a subset of the specified capabilities, by all +// user agents. +function getSimpleConfigurationForInitDataType(initDataType) +{ + return [ { + initDataTypes: [ initDataType ], + audioCapabilities: getPossibleAudioCapabilities() + } ]; +} + +// Returns a MediaKeySystemConfiguration for |mediaFile| that specifies +// both audio and video capabilities for the specified file.. +function getConfigurationForFile(mediaFile) +{ + if (mediaFile.toLowerCase().endsWith('webm')) { + return [ { + initDataTypes: [ 'webm' ], + audioCapabilities: [ { contentType: 'audio/webm; codecs="opus"' } ], + videoCapabilities: [ { contentType: 'video/webm; codecs="vp8"' } ] + } ]; + } + + // NOTE: Supporting other mediaFormats is not currently implemented as + // Chromium only tests with WebM files. + throw 'mediaFile ' + mediaFile + ' not supported.'; +} + +function waitForEventAndRunStep(eventName, element, func, stepTest) +{ + var eventCallback = function(event) { + if (func) + func(event); + } + if (stepTest) + eventCallback = stepTest.step_func(eventCallback); + + element.addEventListener(eventName, eventCallback, true); +} + +// Copied from LayoutTests/resources/js-test.js. +// See it for details of why this is necessary. +function asyncGC(callback) +{ + GCController.collectAll(); + setTimeout(callback, 0); +} + +function createGCPromise() +{ + // Run gc() as a promise. + return new Promise( + function(resolve, reject) { + asyncGC(resolve); + }); +} + +function delayToAllowEventProcessingPromise() +{ + return new Promise( + function(resolve, reject) { + setTimeout(resolve, 0); + }); +} + +function stringToUint8Array(str) +{ + var result = new Uint8Array(str.length); + for(var i = 0; i < str.length; i++) { + result[i] = str.charCodeAt(i); + } + return result; +} + +function arrayBufferAsString(buffer) +{ + // MediaKeySession.keyStatuses iterators return an ArrayBuffer, + // so convert it into a printable string. + return String.fromCharCode.apply(null, new Uint8Array(buffer)); +} + +function dumpKeyStatuses(keyStatuses) +{ + consoleWrite("for (var entry of keyStatuses)"); + for (var entry of keyStatuses) { + consoleWrite(arrayBufferAsString(entry[0]) + ": " + entry[1]); + } + consoleWrite("for (var keyId of keyStatuses.keys())"); + for (var keyId of keyStatuses.keys()) { + consoleWrite(arrayBufferAsString(keyId)); + } + consoleWrite("for (var status of keyStatuses.values())"); + for (var status of keyStatuses.values()) { + consoleWrite(status); + } + consoleWrite("for (var entry of keyStatuses.entries())"); + for (var entry of keyStatuses.entries()) { + consoleWrite(arrayBufferAsString(entry[0]) + ": " + entry[1]); + } + consoleWrite("keyStatuses.forEach()"); + keyStatuses.forEach(function(status, keyId) { + consoleWrite(arrayBufferAsString(keyId) + ": " + status); + }); +} + +// Verify that |keyStatuses| contains just the keys in |keys.expected| +// and none of the keys in |keys.unexpected|. All keys should have status +// 'usable'. Example call: verifyKeyStatuses(mediaKeySession.keyStatuses, +// { expected: [key1], unexpected: [key2] }); +function verifyKeyStatuses(keyStatuses, keys) +{ + var expected = keys.expected || []; + var unexpected = keys.unexpected || []; + + // |keyStatuses| should have same size as number of |keys.expected|. + assert_equals(keyStatuses.size, expected.length); + + // All |keys.expected| should be found. + expected.map(function(key) { + assert_true(keyStatuses.has(key)); + assert_equals(keyStatuses.get(key), 'usable'); + }); + + // All |keys.unexpected| should not be found. + unexpected.map(function(key) { + assert_false(keyStatuses.has(key)); + assert_equals(keyStatuses.get(key), undefined); + }); +} + +// Encodes |data| into base64url string. There is no '=' padding, and the +// characters '-' and '_' must be used instead of '+' and '/', respectively. +function base64urlEncode(data) +{ + var result = btoa(String.fromCharCode.apply(null, data)); + return result.replace(/=+$/g, '').replace(/\+/g, "-").replace(/\//g, "_"); +} + +// Decode |encoded| using base64url decoding. +function base64urlDecode(encoded) +{ + return atob(encoded.replace(/\-/g, "+").replace(/\_/g, "/")); +} + +// For Clear Key, the License Format is a JSON Web Key (JWK) Set, which contains +// a set of cryptographic keys represented by JSON. These helper functions help +// wrap raw keys into a JWK set. +// See: +// https://w3c.github.io/encrypted-media/#clear-key-license-format +// http://tools.ietf.org/html/draft-ietf-jose-json-web-key +// +// Creates a JWK from raw key ID and key. +// |keyId| and |key| are expected to be ArrayBufferViews, not base64-encoded. +function createJWK(keyId, key) +{ + var jwk = '{"kty":"oct","alg":"A128KW","kid":"'; + jwk += base64urlEncode(keyId); + jwk += '","k":"'; + jwk += base64urlEncode(key); + jwk += '"}'; + return jwk; +} + +// Creates a JWK Set from multiple JWKs. +function createJWKSet() +{ + var jwkSet = '{"keys":['; + for (var i = 0; i < arguments.length; i++) { + if (i != 0) + jwkSet += ','; + jwkSet += arguments[i]; + } + jwkSet += ']}'; + return jwkSet; +} + +// Clear Key can also support Key IDs Initialization Data. +// ref: http://w3c.github.io/encrypted-media/keyids-format.html +// Each parameter is expected to be a key id in an Uint8Array. +function createKeyIDs() +{ + var keyIds = '{"kids":["'; + for (var i = 0; i < arguments.length; i++) { + if (i != 0) + keyIds += '","'; + keyIds += base64urlEncode(arguments[i]); + } + keyIds += '"]}'; + return keyIds; +} + +function forceTestFailureFromPromise(test, error, message) +{ + // Promises convert exceptions into rejected Promises. Since there is + // currently no way to report a failed test in the test harness, errors + // are reported using force_timeout(). + if (message) + consoleWrite(message + ': ' + error.message); + else if (error) + consoleWrite(error); + + test.force_timeout(); + test.done(); +} + +function extractSingleKeyIdFromMessage(message) +{ + var json = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(message))); + // Decode the first element of 'kids'. + assert_equals(1, json.kids.length); + var decoded_key = base64urlDecode(json.kids[0]); + // Convert to an Uint8Array and return it. + return stringToUint8Array(decoded_key); +} + +// Create a MediaKeys object for Clear Key with 1 session. KeyId and key +// required for the video are already known and provided. Returns a promise +// that resolves to the MediaKeys object created. +function createMediaKeys(keyId, key) +{ + var mediaKeys; + var mediaKeySession; + var request = stringToUint8Array(createKeyIDs(keyId)); + var jwkSet = stringToUint8Array(createJWKSet(createJWK(keyId, key))); + + return navigator.requestMediaKeySystemAccess('org.w3.clearkey', getSimpleConfigurationForInitDataType('keyids')).then(function(access) { + return access.createMediaKeys(); + }).then(function(result) { + mediaKeys = result; + mediaKeySession = mediaKeys.createSession(); + return mediaKeySession.generateRequest('keyids', request); + }).then(function() { + return mediaKeySession.update(jwkSet); + }).then(function() { + return Promise.resolve(mediaKeys); + }); +} + +// Play the specified |content| on |video|. Returns a promise that is resolved +// after the video plays for |duration| seconds. +function playVideoAndWaitForTimeupdate(video, content, duration) +{ + video.src = content; + video.play(); + return new Promise(function(resolve) { + video.addEventListener('timeupdate', function listener(event) { + if (event.target.currentTime < duration) + return; + video.removeEventListener('timeupdate', listener); + resolve('success'); + }); + }); +} diff --git a/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-waiting-for-a-key.html b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-waiting-for-a-key.html new file mode 100644 index 000000000..2af37cfb9 --- /dev/null +++ b/testing/web-platform/tests/encrypted-media/Google/migrated_to_root_disabled/encrypted-media-waiting-for-a-key.html @@ -0,0 +1,168 @@ + + + + + Waiting for a key. + + + + + +
+ + + diff --git a/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted-different-av-keys.webm b/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted-different-av-keys.webm new file mode 100644 index 000000000..5a29f659b Binary files /dev/null and b/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted-different-av-keys.webm differ diff --git a/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted.webm b/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted.webm new file mode 100644 index 000000000..8d44931e8 Binary files /dev/null and b/testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted.webm differ diff --git a/testing/web-platform/tests/encrypted-media/Google/webm/test.webm b/testing/web-platform/tests/encrypted-media/Google/webm/test.webm new file mode 100644 index 000000000..6c2138d4e Binary files /dev/null and b/testing/web-platform/tests/encrypted-media/Google/webm/test.webm differ -- cgit v1.2.3