Changeset 262689 in webkit


Ignore:
Timestamp:
Jun 6, 2020 10:49:02 AM (4 years ago)
Author:
cturner@igalia.com
Message:

[GTK][WPE][EME] Update WPT and rebaseline
https://bugs.webkit.org/show_bug.cgi?id=212574

Reviewed by Xabier Rodriguez-Calvar.

LayoutTests/imported/w3c:

Updated the encrypted-media directory like so,

Tools/Scripts/import-w3c-tests -s ~/igalia/sources/wpt/ -d imported/w3c/web-platform-tests/ encrypted-media

  • resources/import-expectations.json:
  • web-platform-tests/encrypted-media/META.yml: Added.
  • web-platform-tests/encrypted-media/OWNERS: Removed.
  • web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https-expected.txt: Added.
  • web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https.html: Added.
  • web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https.html: Added.
  • web-platform-tests/encrypted-media/clearkey-generate-request-disallowed-input.https-expected.txt:
  • web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted-segmented.https.html: Added.
  • web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt: Renamed from LayoutTests/platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt.
  • web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt: Renamed from LayoutTests/platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt.
  • web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Added.
  • web-platform-tests/encrypted-media/content/w3c-import.log:
  • web-platform-tests/encrypted-media/drm-check-encryption-scheme.https.html: Added.
  • web-platform-tests/encrypted-media/drm-check-status-for-hdcp.https.html: Added.
  • web-platform-tests/encrypted-media/encrypted-media-supported-by-feature-policy.tentative.html: Added.
  • web-platform-tests/encrypted-media/idlharness.https.html:
  • web-platform-tests/encrypted-media/polyfill/w3c-import.log:
  • web-platform-tests/encrypted-media/resources/w3c-import.log:
  • web-platform-tests/encrypted-media/scripts/check-encryption-scheme.js: Added.

(checkEncryptionScheme):
(runTest):

  • web-platform-tests/encrypted-media/scripts/check-status-for-hdcp.js: Added.

(checkStatusForMinHdcpVersionPolicy):
(runTest):

  • web-platform-tests/encrypted-media/scripts/clearkey-update-non-ascii-input.js:

(runTest):

  • web-platform-tests/encrypted-media/scripts/generate-request-disallowed-input.js:

(runTest):

  • web-platform-tests/encrypted-media/scripts/invalid-license.js:

(runTest.):
(runTest):

  • web-platform-tests/encrypted-media/scripts/playback-temporary-encrypted-clear-segmented-sources.js: Added.

(runTest):

  • web-platform-tests/encrypted-media/scripts/playback-temporary-expired.js:

(runTest):

  • web-platform-tests/encrypted-media/scripts/requestmediakeysystemaccess.js:

(expect_error):

  • web-platform-tests/encrypted-media/scripts/setmediakeys.js:

(runTest):

  • web-platform-tests/encrypted-media/scripts/syntax-mediakeysession.js:

(runTest.func):

  • web-platform-tests/encrypted-media/scripts/temporary-license-type.js:

(runTest):

  • web-platform-tests/encrypted-media/scripts/update-disallowed-input.js:

(runTest.):
(runTest):

  • web-platform-tests/encrypted-media/scripts/w3c-import.log:
  • web-platform-tests/encrypted-media/scripts/waiting-for-a-key.js:
  • web-platform-tests/encrypted-media/util/utils.js:
  • web-platform-tests/encrypted-media/util/w3c-import.log:
  • web-platform-tests/encrypted-media/w3c-import.log:

LayoutTests:

Update the WPT tests and adjust GTK and WPE test expectations. I
have noticed some crashes locally on occasion, but they are rare
here and I have not at the opportunity to dissect one of them to
figure it out.

  • platform/glib/TestExpectations:
  • platform/glib/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https-expected.txt:
  • platform/gtk/TestExpectations:
  • platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https-expected.txt: Added.
  • platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt: Removed.
  • platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt:
  • platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt: Removed.
  • platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Removed.
  • platform/wpe/TestExpectations:
  • platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https-expected.txt: Added.
  • platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt:
  • platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https-expected.txt: Added.
  • platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Removed.
  • platform/wpe/imported/w3c/web-platform-tests/encrypted-media/encrypted-media-default-feature-policy.https.sub-expected.txt: Removed.
  • tests-options.json:
Location:
trunk/LayoutTests
Files:
15 added
6 deleted
29 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r262688 r262689  
     12020-06-06  Charlie Turner  <cturner@igalia.com>
     2
     3        [GTK][WPE][EME] Update WPT and rebaseline
     4        https://bugs.webkit.org/show_bug.cgi?id=212574
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        Update the WPT tests and adjust GTK and WPE test expectations.  I
     9        have noticed some crashes locally on occasion, but they are rare
     10        here and I have not at the opportunity to dissect one of them to
     11        figure it out.
     12
     13        * platform/glib/TestExpectations:
     14        * platform/glib/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https-expected.txt:
     15        * platform/gtk/TestExpectations:
     16        * platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https-expected.txt: Added.
     17        * platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt: Removed.
     18        * platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt:
     19        * platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt: Removed.
     20        * platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Removed.
     21        * platform/wpe/TestExpectations:
     22        * platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https-expected.txt: Added.
     23        * platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt:
     24        * platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https-expected.txt: Added.
     25        * platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Removed.
     26        * platform/wpe/imported/w3c/web-platform-tests/encrypted-media/encrypted-media-default-feature-policy.https.sub-expected.txt: Removed.
     27        * tests-options.json:
     28
    1292020-06-06  Devin Rousso  <drousso@apple.com>
    230
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r262658 r262689  
     12020-06-06  Charlie Turner  <cturner@igalia.com>
     2
     3        [GTK][WPE][EME] Update WPT and rebaseline
     4        https://bugs.webkit.org/show_bug.cgi?id=212574
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        Updated the encrypted-media directory like so,
     9
     10        Tools/Scripts/import-w3c-tests -s ~/igalia/sources/wpt/ -d imported/w3c/web-platform-tests/ encrypted-media
     11
     12        * resources/import-expectations.json:
     13        * web-platform-tests/encrypted-media/META.yml: Added.
     14        * web-platform-tests/encrypted-media/OWNERS: Removed.
     15        * web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https-expected.txt: Added.
     16        * web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https.html: Added.
     17        * web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https.html: Added.
     18        * web-platform-tests/encrypted-media/clearkey-generate-request-disallowed-input.https-expected.txt:
     19        * web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted-segmented.https.html: Added.
     20        * web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt: Renamed from LayoutTests/platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https-expected.txt.
     21        * web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt: Renamed from LayoutTests/platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https-expected.txt.
     22        * web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https-expected.txt: Added.
     23        * web-platform-tests/encrypted-media/content/w3c-import.log:
     24        * web-platform-tests/encrypted-media/drm-check-encryption-scheme.https.html: Added.
     25        * web-platform-tests/encrypted-media/drm-check-status-for-hdcp.https.html: Added.
     26        * web-platform-tests/encrypted-media/encrypted-media-supported-by-feature-policy.tentative.html: Added.
     27        * web-platform-tests/encrypted-media/idlharness.https.html:
     28        * web-platform-tests/encrypted-media/polyfill/w3c-import.log:
     29        * web-platform-tests/encrypted-media/resources/w3c-import.log:
     30        * web-platform-tests/encrypted-media/scripts/check-encryption-scheme.js: Added.
     31        (checkEncryptionScheme):
     32        (runTest):
     33        * web-platform-tests/encrypted-media/scripts/check-status-for-hdcp.js: Added.
     34        (checkStatusForMinHdcpVersionPolicy):
     35        (runTest):
     36        * web-platform-tests/encrypted-media/scripts/clearkey-update-non-ascii-input.js:
     37        (runTest):
     38        * web-platform-tests/encrypted-media/scripts/generate-request-disallowed-input.js:
     39        (runTest):
     40        * web-platform-tests/encrypted-media/scripts/invalid-license.js:
     41        (runTest.):
     42        (runTest):
     43        * web-platform-tests/encrypted-media/scripts/playback-temporary-encrypted-clear-segmented-sources.js: Added.
     44        (runTest):
     45        * web-platform-tests/encrypted-media/scripts/playback-temporary-expired.js:
     46        (runTest):
     47        * web-platform-tests/encrypted-media/scripts/requestmediakeysystemaccess.js:
     48        (expect_error):
     49        * web-platform-tests/encrypted-media/scripts/setmediakeys.js:
     50        (runTest):
     51        * web-platform-tests/encrypted-media/scripts/syntax-mediakeysession.js:
     52        (runTest.func):
     53        * web-platform-tests/encrypted-media/scripts/temporary-license-type.js:
     54        (runTest):
     55        * web-platform-tests/encrypted-media/scripts/update-disallowed-input.js:
     56        (runTest.):
     57        (runTest):
     58        * web-platform-tests/encrypted-media/scripts/w3c-import.log:
     59        * web-platform-tests/encrypted-media/scripts/waiting-for-a-key.js:
     60        * web-platform-tests/encrypted-media/util/utils.js:
     61        * web-platform-tests/encrypted-media/util/w3c-import.log:
     62        * web-platform-tests/encrypted-media/w3c-import.log:
     63
    1642020-06-05  Sam Weinig  <weinig@apple.com>
    265
  • trunk/LayoutTests/imported/w3c/resources/import-expectations.json

    r262615 r262689  
    2020    "paint-timing/resources/": "import",
    2121    "resources/testharness.js": "import",
     22    "encrypted-media": "import",
    2223    "shadow-dom": "import",
    2324    "tools": "import",
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-generate-request-disallowed-input.https-expected.txt

    r237217 r262689  
    33PASS org.w3.clearkey, temporary, cenc, initData longer than 64Kb characters
    44PASS org.w3.clearkey, temporary, keyids, initData longer than 64Kb characters
    5 PASS org.w3.clearkey, temporary, cenc, invalid initdata (size too large)
     5PASS org.w3.clearkey, temporary, cenc, invalid initdata (invalid pssh)
    66PASS org.w3.clearkey, temporary, cenc, invalid initdata (not pssh)
    7 PASS org.w3.clearkey, temporary, cenc, invalid key id length (4 instead of 2)
    8 PASS org.w3.clearkey, temporary, cenc, invalid data size (32 instead of 16)
    9 PASS org.w3.clearkey, temporary, cenc, invalid initdata (second box has incorrect size)
    107PASS org.w3.clearkey, temporary, keyids, invalid initdata (too short key ID)
    118PASS org.w3.clearkey, temporary, keyids, invalid initdata (too long key ID)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/content/w3c-import.log

    r216354 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/idlharness.https.html

    r230285 r262689  
    2121
    2222    <script>
    23         setup(function() {
     23      'use strict';
    2424
    25             fetch( '/interfaces/encrypted-media.idl' )
    26             .then( function( response ) {
    27                 if ( !response.ok ) throw new Error( 'IDL fetch failed' );
    28                 return response.text();
    29             } )
    30             .then( function( idls ) {
    31 
    32                 var idl_array = new IdlArray();
    33                 idl_array.add_untested_idls("interface Navigator {};");
    34                 idl_array.add_untested_idls("interface HTMLMediaElement {};");
    35                 idl_array.add_untested_idls("interface Event {};");
    36                 idl_array.add_untested_idls("interface EventTarget {};");
    37 
    38                 idl_array.add_idls(idls);
    39 
    40                 idl_array.test();
    41 
    42                 done();
    43 
    44             } );
    45 
    46         }, {explicit_done: true});
     25      idl_test(
     26        ['encrypted-media'],
     27        ['html', 'dom'],
     28        idl_array => {
     29          idl_array.add_objects({
     30            Navigator: ['navigator'],
     31          });
     32        }
     33      );
    4734    </script>
    4835  </body>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/polyfill/w3c-import.log

    r216354 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/resources/w3c-import.log

    r216354 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/clearkey-update-non-ascii-input.js

    r207939 r262689  
    1616        var messageEventFired = false;
    1717
    18         return navigator.requestMediaKeySystemAccess(config.keysystem, [configuration]).then(function (access) {
     18        var p = navigator.requestMediaKeySystemAccess(config.keysystem, [configuration]).then(function (access) {
    1919            initDataType = access.getConfiguration().initDataTypes[0];
    2020            initData = getInitData(config.content, initDataType);
     
    3535            messageEventFired = true;
    3636            return messageEvent.target.update(stringToUint8Array(jwkSet));
    37         }).then(function () {
    38             assert_unreached('Error: update() should fail because the processed message has non-ASCII character.');
    3937        }).catch(function (error) {
    40             if(messageEventFired){
    41                 assert_equals(error.name, 'TypeError');
     38            // Ensure we reached the update() call we are trying to test.
     39            if (!messageEventFired) {
     40                assert_unreached(
     41                    `Failed to reach the update() call.  Error: '${error.name}' '${error.message}'`);
    4242            }
    43             else {
    44                 assert_unreached('Error: ' + error.name);
    45             }
     43
     44            // Propagate the error on through.
     45            throw error;
    4646        });
     47
     48        return promise_rejects_js(
     49            test, TypeError, p,
     50            'update() should fail because the processed message has non-ASCII character.');
    4751    }, testname);
    4852}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/generate-request-disallowed-input.js

    r234689 r262689  
    2525        0x00, 0x00, 0x00, 0x00                           // datasize
    2626    ]);
    27     push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid initdata (size too large)');
     27    push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid initdata (invalid pssh)');
    2828
    2929    // Invalid data as type = 'psss'.
     
    3838    ]);
    3939    push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid initdata (not pssh)');
    40 
    41     initData = new Uint8Array([
    42         0x00, 0x00, 0x00, 0x44, 0x70, 0x73, 0x73, 0x68, // BMFF box header (68 bytes, 'pssh')
    43         0x01, 0x00, 0x00, 0x00,                         // Full box header (version = 1, flags = 0)
    44         0x10, 0x77, 0xef, 0xec, 0xc0, 0xb2, 0x4d, 0x02, // SystemID
    45         0xac, 0xe3, 0x3c, 0x1e, 0x52, 0xe2, 0xfb, 0x4b,
    46         0x00, 0x00, 0x00, 0x04,                         // KID_count (4) (incorrect)
    47         0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // First KID ("0123456789012345")
    48         0x38, 0x39, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35,
    49         0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // Second KID ("ABCDEFGHIJKLMNOP")
    50         0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50,
    51         0x00, 0x00, 0x00, 0x00                          // Size of Data (0)
    52     ]);
    53     push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid key id length (4 instead of 2)');
    54 
    55     initData = new Uint8Array([
    56         0x00, 0x00, 0x00, 0x54, 0x70, 0x73, 0x73, 0x68, // BMFF box header (84 bytes, 'pssh')
    57         0x01, 0x00, 0x00, 0x00,                         // Full box header (version = 1, flags = 0)
    58         0x10, 0x77, 0xef, 0xec, 0xc0, 0xb2, 0x4d, 0x02, // SystemID
    59         0xac, 0xe3, 0x3c, 0x1e, 0x52, 0xe2, 0xfb, 0x4b,
    60         0x00, 0x00, 0x00, 0x02,                         // KID_count (2)
    61         0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // First KID ("0123456789012345")
    62         0x38, 0x39, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35,
    63         0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // Second KID ("ABCDEFGHIJKLMNOP")
    64         0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50,
    65         0x00, 0x00, 0x00, 0x20,                         // Size of Data (32, incorrect)
    66         0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
    67         0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50
    68     ]);
    69     push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid data size (32 instead of 16)');
    70 
    71     // Invalid size in a second PSSH blob
    72     // The CENC format allows multiple concatenated boxes, see https://www.w3.org/TR/eme-initdata-cenc/#format
    73     initData = new Uint8Array([
    74         0x00, 0x00, 0x00, 0x20,                          // size = 32
    75         0x70, 0x73, 0x73, 0x68,                          // 'pssh'
    76         0x00,                                            // version = 0
    77         0x00, 0x00, 0x00,                                // flags
    78         0x10, 0x77, 0xEF, 0xEC, 0xC0, 0xB2, 0x4D, 0x02,  // Common SystemID
    79         0xAC, 0xE3, 0x3C, 0x1E, 0x52, 0xE2, 0xFB, 0x4B,
    80         0x00, 0x00, 0x00, 0x00,                          // datasize
    81 
    82         0x00, 0x00, 0x00, 0x10,                          // size = 16 (incorrect)
    83         0x70, 0x73, 0x73, 0x68,                          // 'pssh'
    84         0x00,                                            // version = 0
    85         0x00, 0x00, 0x00,                                // flags
    86         0x10, 0x77, 0xEF, 0xEC, 0xC0, 0xB2, 0x4D, 0x02,  // Common SystemID
    87         0xAC, 0xE3, 0x3C, 0x1E, 0x52, 0xE2, 0xFB, 0x4B,
    88         0x00, 0x00, 0x00, 0x00                           // datasize
    89 
    90     ]);
    91     push_test(config.keysystem, 'cenc', initData, testnamePrefix( qualifier, config.keysystem ) + ', temporary, cenc, invalid initdata (second box has incorrect size)');
    9240
    9341    // Valid key ID size must be at least 1 character for keyids.
     
    11058                // TypeError. Returns a promise that is resolved
    11159                // if the error occurred and rejected otherwise.
    112                 return navigator.requestMediaKeySystemAccess(testspec.keysystem, getSimpleConfigurationForInitDataType(testspec.initDataType)).then(function(access) {
     60                var p = navigator.requestMediaKeySystemAccess(testspec.keysystem, getSimpleConfigurationForInitDataType(testspec.initDataType)).then(function(access) {
    11361                    return access.createMediaKeys();
    11462                }).then(function(mediaKeys) {
    11563                    var mediaKeySession = mediaKeys.createSession("temporary");
    11664                    return mediaKeySession.generateRequest(testspec.initDataType, testspec.initData);
    117                 }).then(test.step_func(function() {
    118                     assert_unreached('generateRequest() succeeded unexpectedly');
    119                 }), test.step_func(function(error) {
    120                     assert_equals(error.name, 'TypeError');
    121                 }));
    122             },testspec.testname);
     65                });
     66
     67                return promise_rejects_js(test, TypeError, p,
     68                                          "generateRequest() should fail");
     69            }, testspec.testname);
    12370        });
    12471    });
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/invalid-license.js

    r207939 r262689  
    88        var messageEventFired = false;
    99
    10         return navigator.requestMediaKeySystemAccess(keySystem, getSimpleConfiguration()).then(function (access) {
     10        var p = navigator.requestMediaKeySystemAccess(keySystem, getSimpleConfiguration()).then(function (access) {
    1111            initDataType = access.getConfiguration().initDataTypes[0];
    1212            initData = getInitData(initDataType);
     
    2121            messageEventFired = true;
    2222            return messageEvent.target.update(invalidLicense);
    23         }).then(function () {
    24             assert_unreached('Error: update() should fail because of an invalid license.');
    2523        }).catch(function (error) {
    26             if(messageEventFired) {
    27                 assert_equals(error.name, 'TypeError');
    28             } else {
    29                 assert_unreached('Error: ' + error.name);
     24            // Ensure we reached the update() call we are trying to test.
     25            if (!messageEventFired) {
     26                assert_unreached(
     27                    `Failed to reach the update() call.  Error: '${error.name}' '${error.message}'`);
    3028            }
     29
     30            // Propagate the error on through.
     31            throw error;
    3132        });
     33
     34        return promise_rejects_js(
     35            test, TypeError, p,
     36            'update() should fail because of an invalid license.');
    3237    }, 'Update with invalid Clear Key license');
    3338}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-temporary-expired.js

    r207939 r262689  
    4545            assert_in_array(event.messageType, ['license-request', 'individualization-request']);
    4646
     47            // Generate a license that expires 1 second from now.
    4748            var expiration = Date.now().valueOf() + 1000;
    4849            config.messagehandler(event.messageType, event.message, { expiration: expiration }).then(function(response) {
    49                 return event.target.update(response);
    50             }).then(test.step_func(function() {
    51                 // License server may only have second granularity, so check
    52                 // that session expiration time is close to the desired value.
    53                 assert_approx_equals(event.target.expiration, expiration, 2000, "expiration attribute should equal provided expiration time");
    54 
    55                 // Since the expiration time is in the future, wait 5 seconds
    56                 // so that the license has expired before calling play().
     50                // Wait 2 seconds before calling update() to ensure that the
     51                // license has really expired. This is to avoid problems
     52                // where the browser starts buffering frames as soon as a
     53                // valid license is received.
    5754                test.step_timeout(function() {
    58                     assert_greater_than(Date.now().valueOf(), expiration, "Starting play before license expired");
    59                     _video.play();
    60                     // Wait 2 seconds to ensure that the video does not play.
    61                     test.step_timeout(function() { test.done(); }, 2000);
    62                 }, 5000);
    63             })).catch(onFailure);
     55                    event.target.update(response).then(function() {
     56                        // License server may only have second granularity, so check
     57                        // that session expiration time is close to the desired value.
     58                        assert_approx_equals(event.target.expiration, expiration, 3000,
     59                                             "expiration attribute should equal provided expiration time");
     60                        assert_greater_than(Date.now().valueOf(), expiration, "Starting play before license expired");
     61                        _video.play();
     62                        // Wait 2 seconds to ensure that the video does not play.
     63                        test.step_timeout(function() { test.done(); }, 2000);
     64                    }).catch(onFailure);
     65                }, 2000);
     66            }).catch(onFailure);
    6467        }
    6568
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/requestmediakeysystemaccess.js

    r218181 r262689  
    1212
    1313        promise_test(function(test) {
    14             return navigator.requestMediaKeySystemAccess(keySystem, configurations).then(function(a) {
    15                 assert_unreached('Unexpected requestMediaKeySystemAccess() success.');
    16             }, function(e) {
    17                 assert_equals(e.name, expectedError);
    18             });
     14            var p = navigator.requestMediaKeySystemAccess(keySystem, configurations);
     15            // expectedError is a string name for the error.  We can differentiate
     16            // JS Errors from DOMExceptions by checking whether
     17            // window[expectedError] exists.  If it does, expectedError is the name
     18            // of a JS Error subclass and window[expectedError] is the constructor
     19            // for that subclass.  Otherwise it's a name for a DOMException.
     20            if (window[expectedError]) {
     21                return promise_rejects_js(test, window[expectedError], p);
     22            } else {
     23                return promise_rejects_dom(test, expectedError, p);
     24            }
    1925        }, prefix + modifiedtestname + ' should result in ' + expectedError );
    2026    }
     
    9298        audioCapabilities: [{contentType: config.audioType}],
    9399        videoCapabilities: [{contentType: config.videoType}],
     100        label: 'abcd',
    94101    }], {
    95102        initDataTypes: [config.initDataType],
    96103        audioCapabilities: [{contentType: config.audioType}],
    97104        videoCapabilities: [{contentType: config.videoType}],
     105        label: 'abcd',
    98106    }, 'Basic supported configuration');
    99107
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/setmediakeys.js

    r207939 r262689  
    3131        }, function(error) {
    3232            // The error should be TypeError.
    33             assert_equals(error.name, 'TypeError', 'setMediaKeys should return a TypeError when setting to wrong kind of object (Date)');
     33            assert_throws_js(TypeError, () => { throw error; },
     34                             'setMediaKeys should return a TypeError when setting to wrong kind of object (Date)');
    3435            return navigator.requestMediaKeySystemAccess(config.keysystem, [configuration]);
    3536        }).then(function(access) {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/syntax-mediakeysession.js

    r207939 r262689  
    5858                return mk6.createSession().generateRequest(type, new Uint8Array(0));
    5959            }
    60         }
     60        },
     61        // Using an empty type should return a 'TypeError'.
     62        {
     63            exception: 'TypeError',
     64            func: function (mk7, type) {
     65                return mk7.createSession().generateRequest('', initData);
     66            }
     67        },
    6168    ];
    6269    function generateRequestTestExceptions(){
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/temporary-license-type.js

    r207660 r262689  
    3838                    }
    3939
    40                     assert_equals(error.name, 'TypeError' );
     40                    assert_throws_js(TypeError, () => { throw error; });
    4141                    test.done();
    4242                } ) );
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/update-disallowed-input.js

    r207939 r262689  
    2222        }
    2323
    24         return navigator.requestMediaKeySystemAccess(keySystem, getSimpleConfiguration()).then(function(access) {
     24        var p = navigator.requestMediaKeySystemAccess(keySystem, getSimpleConfiguration()).then(function(access) {
    2525            initDataType = access.getConfiguration().initDataTypes[0];
    2626            initData = getInitData(initDataType);
     
    3737            var jwkSetArray = stringToUint8Array(jwkSet);
    3838            return mediaKeySession.update(jwkSetArray);
    39         }).then(function () {
    40             assert_unreached('update() with a response longer than 64Kb succeed');
    41         }).catch(function (error) {
    42             assert_equals(error.name, 'TypeError');
    4339        });
     40
     41        return promise_rejects_js(test, TypeError, p);
    4442    }, 'update() with invalid response (longer than 64Kb characters) should fail.');
    4543}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/w3c-import.log

    r230445 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
     
    1515------------------------------------------------------------------------
    1616List of files:
     17/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/check-encryption-scheme.js
    1718/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/check-initdata-type.js
     19/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/check-status-for-hdcp.js
    1820/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/clearkey-update-non-ascii-input.js
    1921/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/events-session-closed-event.js
     
    3335/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-retrieve-persistent-license.js
    3436/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-retrieve-persistent-usage-record.js
     37/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-temporary-encrypted-clear-segmented-sources.js
    3538/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-temporary-encrypted-clear-sources.js
    3639/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/playback-temporary-events.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/scripts/waiting-for-a-key.js

    r207660 r262689  
    102102        // Typical test duration is 6 seconds on release builds
    103103        // (12 seconds on debug).
    104     }, 'Waiting for a key.', {timeout: 20000});
     104    }, 'Waiting for a key.');
    105105
    106106    // Wait for an 'encrypted' event
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/util/utils.js

    r230445 r262689  
    241241    var args = Array.prototype.slice.call(arguments, 1);
    242242
    243     // Currently blink throws for TypeErrors rather than returning
    244     // a rejected promise (http://crbug.com/359386).
    245     // FIXME: Remove try/catch once they become failed promises.
    246     try {
    247         return func.apply(null, args).then(
    248             function (result) {
    249                 assert_unreached(format_value(func));
    250             },
    251             function (error) {
    252                 assert_equals(error.name, exception, format_value(func));
    253                 assert_not_equals(error.message, "", format_value(func));
    254             }
    255         );
    256     } catch (e) {
    257         // Only allow 'TypeError' exceptions to be thrown.
    258         // Everything else should be a failed promise.
    259         assert_equals('TypeError', exception, format_value(func));
    260         assert_equals(e.name, exception, format_value(func));
    261     }
     243    // This should really be rewritten in terms of the promise_rejects_*
     244    // testharness utility functions, but that needs the async test involved
     245    // passed in, and we don't have that here.
     246    return func.apply(null, args).then(
     247        function (result) {
     248            assert_unreached(format_value(func));
     249        },
     250        function (error) {
     251            assert_not_equals(error.message, "", format_value(func));
     252            // `exception` is a string name for the error.  We can differentiate
     253            // JS Errors from DOMExceptions by checking whether
     254            // window[exception] exists.  If it does, expectedError is the name
     255            // of a JS Error subclass and window[exception] is the constructor
     256            // for that subclass.  Otherwise it's a name for a DOMException.
     257            if (window[exception]) {
     258                assert_throws_js(window[exception],
     259                                 () => { throw error; },
     260                                 format_value(func));
     261            } else {
     262                assert_throws_dom(exception,
     263                                  () => { throw error; },
     264                                  format_value(func));
     265            }
     266        }
     267    );
    262268}
    263269
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/util/w3c-import.log

    r216354 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/w3c-import.log

    r230445 r262689  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
     
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/encrypted-media/OWNERS
     17/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/META.yml
    1818/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/README.md
     19/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https.html
    1920/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-initdata-type.https.html
     21/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https.html
    2022/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-events-session-closed-event.https.html
    2123/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-events.https.html
     
    3234/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-license.https.html
    3335/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-usage-record.https.html
     36/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted-segmented.https.html
    3437/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted.https.html
    3538/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear-sources.https.html
     
    6467/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-not-callable-after-createsession.https.html
    6568/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/clearkey-update-non-ascii-input.https.html
     69/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-check-encryption-scheme.https.html
    6670/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-check-initdata-type.https.html
     71/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-check-status-for-hdcp.https.html
    6772/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-events-session-closed-event.https.html
    6873/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-events.https.html
     
    116121/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/drm-temporary-license-type.https.html
    117122/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/encrypted-media-default-feature-policy.https.sub.html
     123/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/encrypted-media-supported-by-feature-policy.tentative.html
    118124/LayoutTests/imported/w3c/web-platform-tests/encrypted-media/idlharness.https.html
  • trunk/LayoutTests/platform/glib/TestExpectations

    r262614 r262689  
    152152#////////////////////////////////////////////////////////////////////////////////////////
    153153# End of WPT-related bugs
     154#////////////////////////////////////////////////////////////////////////////////////////
     155
     156
     157#////////////////////////////////////////////////////////////////////////////////////////
     158# EME feature
     159#////////////////////////////////////////////////////////////////////////////////////////
     160
     161# LEGACY_ENCRYPTED_MEDIA is deprecated
     162webkit.org/b/189345 http/tests/media/clearkey/collect-webkit-media-session.html [ Skip ]
     163fast/events/webkit-media-key-events-constructor.html [ Skip ]
     164
     165media/encrypted-media [ Pass ]
     166media/encrypted-media/clearKey/clearKey-cenc-video-playback-mse-multikey.html [ Skip ]
     167webkit.org/b/205857 media/encrypted-media/mock-MediaKeySession-generateRequest.html [ Skip ]
     168webkit.org/b/205857 media/encrypted-media/mock-navigator-requestMediaKeySystemAccess.html [ Skip ]
     169webkit.org/b/205860 media/encrypted-media/mock-MediaKeySession-remove.html [ Skip ]
     170webkit.org/b/190578 media/encrypted-media/mock-MediaKeySystemAccess.html [ Skip ]
     171
     172webkit.org/b/210390 media/encrypted-media/clearKey/clearKey-webm-video-playback-mse.html [ Pass Crash ]
     173webkit.org/b/190991 media/encrypted-media/encrypted-media-constants.html [ Failure ]
     174webkit.org/b/190991 media/encrypted-media/encrypted-media-is-type-supported.html [ Failure ]
     175webkit.org/b/190991 media/encrypted-media/encrypted-media-session-lifetime.html [ Timeout ]
     176# Encrypted WebM is not supported yet.
     177webkit.org/b/189196 media/encrypted-media/clearKey/clearKey-encrypted-webm-event-mse.html [ Skip ]
     178
     179# Web platform tests
     180# Disable and selectively pass, since half the tests require a real DRM system.
     181webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/ [ Skip ]
     182webkit.org/b/211840 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-license.https.html [ Crash Pass Failure ]
     183webkit.org/b/211840 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-destroy-persistent-license.https.html [ Failure ]
     184webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-check-status-for-hdcp.https.html [ Failure ]
     185webkit.org/b/211375 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted-segmented.https.html [ Skip ]
     186webkit.org/b/210113 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https.html [ Failure Pass ]
     187webkit.org/b/210264 imported/w3c/web-platform-tests/encrypted-media/clearkey-events-session-closed-event.https.html [ Failure Pass ]
     188webkit.org/b/210965 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential-readyState.https.html [ Failure ]
     189webkit.org/b/210966 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-playback.https.html [ Crash Pass ]
     190webkit.org/b/178707 imported/w3c/web-platform-tests/encrypted-media/encrypted-media-default-feature-policy.https.sub.html [ Skip ]
     191
     192imported/w3c/web-platform-tests/encrypted-media/clearkey-check-encryption-scheme.https.html [ Pass ]
     193imported/w3c/web-platform-tests/encrypted-media/clearkey-check-initdata-type.https.html [ Pass ]
     194imported/w3c/web-platform-tests/encrypted-media/clearkey-events.https.html [ Pass ]
     195imported/w3c/web-platform-tests/encrypted-media/clearkey-generate-request-disallowed-input.https.html [ Pass ]
     196imported/w3c/web-platform-tests/encrypted-media/clearkey-invalid-license.https.html [ Pass ]
     197imported/w3c/web-platform-tests/encrypted-media/clearkey-keystatuses.https.html [ Pass ]
     198imported/w3c/web-platform-tests/encrypted-media/clearkey-keystatuses-multiple-sessions.https.html [ Pass ]
     199imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-clear-encrypted.https.html [ Pass ]
     200imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear.https.html [ Pass ]
     201imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear-sources.https.html [ Pass ]
     202imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https.html [ Pass ]
     203imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary.https.html [ Pass ]
     204imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey.https.html [ Pass ]
     205imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential.https.html [ Pass ]
     206imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multisession.https.html [ Pass ]
     207imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-src.https.html [ Pass ]
     208imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-update.https.html [ Pass ]
     209imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-immediately.https.html [ Pass ]
     210imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-onencrypted.https.html [ Pass ]
     211imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-two-videos.https.html [ Pass ]
     212imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-waitingforkey.https.html [ Pass ]
     213imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https.html [ Pass ]
     214imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-resetting-src.https.html [ Pass ]
     215imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-at-same-time.https.html [ Pass ]
     216imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys.https.html [ Pass ]
     217imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-multiple-times-with-different-mediakeys.https.html [ Pass ]
     218imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-multiple-times-with-the-same-mediakeys.https.html [ Pass ]
     219imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-to-multiple-video-elements.https.html [ Pass ]
     220imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-syntax-mediakeysession.https.html [ Pass ]
     221imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-syntax-mediakeys.https.html [ Pass ]
     222imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-syntax-mediakeysystemaccess.https.html [ Pass ]
     223imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-unique-origin.https.html [ Pass ]
     224imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https.html [ Pass ]
     225imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https.html [ Pass ]
     226imported/w3c/web-platform-tests/encrypted-media/clearkey-not-callable-after-createsession.https.html [ Pass ]
     227imported/w3c/web-platform-tests/encrypted-media/clearkey-update-non-ascii-input.https.html [ Pass ]
     228
     229#////////////////////////////////////////////////////////////////////////////////////////
     230# End of EME feature
    154231#////////////////////////////////////////////////////////////////////////////////////////
    155232
     
    215292#////////////////////////////////////////////////////////////////////////////////////////
    216293
    217 
    218294#////////////////////////////////////////////////////////////////////////////////////////
    219295# NEEDS TRIAGING. If unsure, put it in this section.
  • trunk/LayoutTests/platform/glib/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https-expected.txt

    r261674 r262689  
    11
    2 FAIL update() with invalid response (longer than 64Kb characters) should fail. assert_equals: expected "TypeError" but got "Error"
     2FAIL update() with invalid response (longer than 64Kb characters) should fail. assert_unreached: Should have rejected: undefined Reached unreachable code
    33
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r262615 r262689  
    11051105webkit.org/b/187550 http/tests/plugins/plugin-allow-then-reload.html [ Failure ]
    11061106
    1107 webkit.org/b/190738 imported/w3c/web-platform-tests/encrypted-media/resources/clearkey-retrieve-destroy-persistent-license.html [ Missing ]
    1108 webkit.org/b/190738 imported/w3c/web-platform-tests/encrypted-media/resources/clearkey-retrieve-persistent-license.html [ Missing ]
    1109 
    11101107# MediaRecorder is not currently implemented
    11111108http/wpt/mediarecorder [ Skip ]
     
    11581155# Server cookie not handled with platform WebSockets API
    11591156webkit.org/b/200165 imported/w3c/web-platform-tests/websockets/cookies/007.html [ Failure ]
    1160 
    1161 webkit.org/b/205857 media/encrypted-media/mock-MediaKeySession-generateRequest.html [ Skip ]
    1162 webkit.org/b/205860 media/encrypted-media/mock-MediaKeySession-remove.html [ Skip ]
    11631157
    11641158# ch units should be ignored in these tests.
     
    14351429webkit.org/b/188406 [ Debug ] imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/dir.html [ Crash ]
    14361430
    1437 webkit.org/b/190738 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-license.https.html [ Crash Pass Failure ]
    14381431webkit.org/b/191882 fast/forms/validation-message-clone.html [ Failure Crash Pass ]
    14391432webkit.org/b/191882 fast/forms/validation-message-in-relative-body.html [ Failure Crash ]
     
    21112104webkit.org/b/190703 inspector/worker/console-basic.html [ Failure Pass ]
    21122105webkit.org/b/190703 inspector/worker/debugger-pause.html [ Failure Pass Timeout ]
    2113 
    2114 webkit.org/b/190738 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https.html [ Failure Pass ]
    21152106
    21162107webkit.org/b/191007 http/tests/media/media-stream/get-display-media-prompt.html [ Crash Pass Timeout ]
     
    28552846webkit.org/b/210375 imported/w3c/web-platform-tests/service-workers/service-worker/svg-target-reftest.https.html [ ImageOnlyFailure Pass ]
    28562847
    2857 webkit.org/b/210390 media/encrypted-media/clearKey/clearKey-webm-video-playback-mse.html [ Pass Crash ]
    28582848webkit.org/b/210390 storage/domstorage/localstorage/access-storage-after-window-close.html [ Pass Crash ]
    28592849webkit.org/b/210390 storage/domstorage/sessionstorage/blocked-file-access.html [ Pass Crash ]
     
    31973187webkit.org/b/188104 webgl/1.0.3/conformance/ogles/GL/vec/vec_009_to_016.html [ Timeout Pass ]
    31983188webkit.org/b/188106 webgl/1.0.3/conformance/ogles/GL/swizzlers/swizzlers_017_to_024.html [ Timeout Pass ]
    3199 
    3200 media/encrypted-media/clearKey/clearKey-cenc-video-playback-mse-multikey.html [ Skip ]
    32013189
    32023190webkit.org/b/191008 webanimations/accelerated-animation-suspension.html [ Timeout ]
     
    42294217webkit.org/b/189343 imported/w3c/web-platform-tests/xhr/sync-no-timeout.any.worker.html [ Failure ]
    42304218
    4231 # LEGACY_ENCRYPTED_MEDIA is deprecated
    4232 webkit.org/b/189345 http/tests/media/clearkey/collect-webkit-media-session.html [ Skip ]
    4233 
    42344219webkit.org/b/189564 http/tests/xmlhttprequest/url-with-credentials.html [ Failure ]
    42354220
     
    42554240webkit.org/b/190990 fast/block/basic/inline-content-with-floating-image.html [ Failure Missing ]
    42564241
    4257 # Regressions from EME enablement
    4258 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/ [ Skip ]
    4259 webkit.org/b/190991 media/encrypted-media/encrypted-media-constants.html [ Failure ]
    4260 webkit.org/b/190991 media/encrypted-media/encrypted-media-is-type-supported.html [ Failure ]
    4261 webkit.org/b/190991 media/encrypted-media/encrypted-media-session-lifetime.html [ Timeout ]
    42624242webkit.org/b/190991 http/tests/navigation/page-cache-mediakeysession.html [ Skip ]
    42634243
  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt

    r237292 r262689  
    2626PASS Supported audio codec
    2727PASS ContentType formatting must be preserved
    28 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported audio codec ('audio/webm; codecs=fake') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    29 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported video codec () should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    30 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=mp4a','audio/webm; codecs=mp4a.40.2') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    31 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video codec specified in audio field ('video/mp4;codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    32 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio codec specified in video field ('audio/mp4;codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    33 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=avc1','audio/webm; codecs=avc1.42e01e') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    34 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/mp4; codecs=vorbis') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     28FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported audio codec ('audio/webm; codecs=fake') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     29FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported video codec () should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     30FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=mp4a','audio/webm; codecs=mp4a.40.2') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     31FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video codec specified in audio field ('video/mp4;codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     32FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio codec specified in video field ('audio/mp4;codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     33FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=avc1','audio/webm; codecs=avc1.42e01e') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     34FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/mp4; codecs=vorbis') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    3535PASS Two configurations, one supported
    3636PASS Two configurations, both supported
    37 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (webm) ('audio/webm; codecs="vp8,vorbis"','audio/webm; codecs="vorbis, vp8"','audio/webm; codecs="vp8"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    38 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (mp4) ('audio/mp4; codecs="avc1"','audio/mp4; codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    39 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (webm) ('video/webm; codecs="vp8,vorbis"','video/webm; codecs="vorbis, vp8"','video/webm; codecs="vorbis"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    40 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (mp4) ('video/mp4; codecs="mp4a"','video/mp4; codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    41 FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM audio does not support AVC1/AAC ('audio/webm; codecs="aac"','audio/webm; codecs="avc1"','audio/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    42 FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM video does not support AVC1/AAC ('video/webm; codecs="aac"','video/webm; codecs="avc1"','video/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     37FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (webm) ('audio/webm; codecs="vp8,vorbis"','audio/webm; codecs="vorbis, vp8"','audio/webm; codecs="vp8"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     38FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (mp4) ('audio/mp4; codecs="avc1"','audio/mp4; codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     39FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (webm) ('video/webm; codecs="vp8,vorbis"','video/webm; codecs="vorbis, vp8"','video/webm; codecs="vorbis"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     40FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (mp4) ('video/mp4; codecs="mp4a"','video/mp4; codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     41FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM audio does not support AVC1/AAC ('audio/webm; codecs="aac"','audio/webm; codecs="avc1"','audio/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     42FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM video does not support AVC1/AAC ('video/webm; codecs="aac"','video/webm; codecs="avc1"','video/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    4343PASS Leading space in contentType
    4444PASS Space before ; in contentType
    45 FAIL Trailing space in contentType promise_test: Unhandled rejection with value: object "NotSupportedError: The operation is not supported."
     45PASS Trailing space in contentType
    4646PASS Space at start of codecs parameter
    4747PASS Space at end of codecs parameter
     
    5656PASS org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'audio/fake' should result in NotSupportedError
    5757PASS org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/fake' should result in NotSupportedError
    58 FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs="AVC1.4D401E"' should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    59 FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs=",avc1.4d401e"' should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     58FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs="AVC1.4D401E"' should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     59FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs=",avc1.4d401e"' should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    6060
  • trunk/LayoutTests/platform/wpe/TestExpectations

    r262615 r262689  
    319319inspector/canvas/updateShader-webgpu-sharedVertexFragment.html [ Skip ]
    320320
    321 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/ [ Skip ]
    322 # Some imported encrypted media tests have been consistently passing on the bots.
    323 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-events.https.html [ Pass ]
    324 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-keystatuses-multiple-sessions.https.html [ Pass ]
    325 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https.html [ Pass ]
    326 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multisession.https.html [ Pass ]
    327 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-src.https.html [ Pass ]
    328 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-update.https.html [ Pass ]
    329 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-update-disallowed-input.https.html [ Pass ]
    330 
    331 
    332 # Encrypted WebM is not supported yet.
    333 webkit.org/b/189196 media/encrypted-media/clearKey/clearKey-encrypted-webm-event-mse.html [ Skip ]
    334 webkit.org/b/189200 media/encrypted-media/clearKey/clearKey-webm-video-playback-mse.html [ Skip ]
    335 
    336321# This port doesn't support detecting slow unload handlers.
    337322Bug(GTK) fast/dom/Window/slow-unload-handler.html [ WontFix Timeout Failure ]
     
    490475webkit.org/b/202745 fast/css/invalidation-errors.html [ Failure ]
    491476
    492 webkit.org/b/205860 media/encrypted-media/mock-MediaKeySession-remove.html [ Skip ]
    493 
    494477webkit.org/b/205998 imported/w3c/web-platform-tests/svg/extensibility/foreignObject/masked.html [ ImageOnlyFailure ]
    495478
     
    606589
    607590webkit.org/b/207624 imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html [ Failure ]
    608 
    609 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-destroy-persistent-license.https.html [ Failure ]
    610 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-destroy-persistent-license.https.html [ Failure ]
    611 webkit.org/b/190991 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-license.https.html [ Failure ]
    612591
    613592webkit.org/b/208104 imported/w3c/web-platform-tests/content-security-policy/script-src/scripthash-changed-2.html [ Failure ]
     
    11171096webkit.org/b/192892 http/tests/appcache/deferred-events.html [ Pass Failure ]
    11181097webkit.org/b/192893 http/tests/workers/service/postmessage-after-sw-process-crash.https.html [ Pass Failure ]
    1119 webkit.org/b/192894 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-persistent-license-events.https.html [ Pass Failure ]
    11201098
    11211099webkit.org/b/192903 imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-redirect.https.html [ Pass Failure ]
     
    18641842webkit.org/b/168373 media/media-source/only-bcp47-language-tags-accepted-as-valid.html [ Timeout ]
    18651843
    1866 media/encrypted-media [ Pass ]
    1867 media/encrypted-media/encrypted-media-constants.html [ Skip ]
    1868 media/encrypted-media/encrypted-media-is-type-supported.html [ Skip ]
    1869 media/encrypted-media/encrypted-media-session-lifetime.html [ Skip ]
    1870 
    18711844webkit.org/b/168543 http/wpt/resource-timing/rt-nextHopProtocol.html [ Failure ]
    18721845webkit.org/b/168543 http/wpt/resource-timing/rt-nextHopProtocol.worker.html [ Failure ]
     
    22452218webkit.org/b/208188 webgl/2.0.0 [ Skip ]
    22462219
    2247 webkit.org/b/210417 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential-readyState.https.html [ Failure ]
    2248 webkit.org/b/210417 imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential.https.html [ Failure ]
    2249 
    22502220webkit.org/b/195133 mathml/non-core/lengths-3.html [ Failure ]
    22512221webkit.org/b/212080 mathml/opentype/large-operators-displaystyle-dynamic.html [ ImageOnlyFailure ]
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https-expected.txt

    r242037 r262689  
    2626PASS Supported audio codec
    2727PASS ContentType formatting must be preserved
    28 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported audio codec ('audio/webm; codecs=fake') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    29 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported video codec () should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    30 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=mp4a','audio/webm; codecs=mp4a.40.2') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    31 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video codec specified in audio field ('video/mp4;codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    32 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio codec specified in video field ('audio/mp4;codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    33 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=avc1','audio/webm; codecs=avc1.42e01e') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    34 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/mp4; codecs=vorbis') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     28FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported audio codec ('audio/webm; codecs=fake') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     29FAIL org.w3.clearkey, requestMediaKeySystemAccess: Unsupported video codec () should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     30FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=mp4a','audio/webm; codecs=mp4a.40.2') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     31FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video codec specified in audio field ('video/mp4;codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     32FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio codec specified in video field ('audio/mp4;codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     33FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/webm; codecs=avc1','audio/webm; codecs=avc1.42e01e') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     34FAIL org.w3.clearkey, requestMediaKeySystemAccess: Mismatched audio container/codec ('audio/mp4; codecs=vorbis') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    3535PASS Two configurations, one supported
    3636PASS Two configurations, both supported
    37 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (webm) ('audio/webm; codecs="vp8,vorbis"','audio/webm; codecs="vorbis, vp8"','audio/webm; codecs="vp8"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    38 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (mp4) ('audio/mp4; codecs="avc1"','audio/mp4; codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    39 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (webm) ('video/webm; codecs="vp8,vorbis"','video/webm; codecs="vorbis, vp8"','video/webm; codecs="vorbis"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    40 FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (mp4) ('video/mp4; codecs="mp4a"','video/mp4; codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    41 FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM audio does not support AVC1/AAC ('audio/webm; codecs="aac"','audio/webm; codecs="avc1"','audio/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    42 FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM video does not support AVC1/AAC ('video/webm; codecs="aac"','video/webm; codecs="avc1"','video/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     37FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (webm) ('audio/webm; codecs="vp8,vorbis"','audio/webm; codecs="vorbis, vp8"','audio/webm; codecs="vp8"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     38FAIL org.w3.clearkey, requestMediaKeySystemAccess: Audio MIME type does not support video codecs (mp4) ('audio/mp4; codecs="avc1"','audio/mp4; codecs="avc1.4d401e"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     39FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (webm) ('video/webm; codecs="vp8,vorbis"','video/webm; codecs="vorbis, vp8"','video/webm; codecs="vorbis"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     40FAIL org.w3.clearkey, requestMediaKeySystemAccess: Video MIME type does not support audio codecs (mp4) ('video/mp4; codecs="mp4a"','video/mp4; codecs="mp4a.40.2"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     41FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM audio does not support AVC1/AAC ('audio/webm; codecs="aac"','audio/webm; codecs="avc1"','audio/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     42FAIL org.w3.clearkey, requestMediaKeySystemAccess: WebM video does not support AVC1/AAC ('video/webm; codecs="aac"','video/webm; codecs="avc1"','video/webm; codecs="vp8,aac"') should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    4343PASS Leading space in contentType
    4444PASS Space before ; in contentType
     
    5656PASS org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'audio/fake' should result in NotSupportedError
    5757PASS org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/fake' should result in NotSupportedError
    58 FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs="AVC1.4D401E"' should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
    59 FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs=",avc1.4d401e"' should result in NotSupportedError assert_unreached: Unexpected requestMediaKeySystemAccess() success. Reached unreachable code
     58FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs="AVC1.4D401E"' should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
     59FAIL org.w3.clearkey, requestMediaKeySystemAccess: contentType: 'video/mp4;codecs=",avc1.4d401e"' should result in NotSupportedError assert_unreached: Should have rejected: undefined Reached unreachable code
    6060
  • trunk/LayoutTests/tests-options.json

    r262615 r262689  
    1818        "slow"
    1919    ],
     20    "imported/w3c/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear-sources.https.html": [
     21        "slow"
     22    ],
     23    "imported/w3c/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential-readyState.https.html": [
     24        "slow"
     25    ],
     26    "imported/w3c/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential.https.html": [
     27        "slow"
     28    ],
     29    "imported/w3c/encrypted-media/clearkey-mp4-playback-temporary-two-videos.https.html": [
     30        "slow"
     31    ],
     32    "imported/w3c/encrypted-media/clearkey-mp4-requestmediakeysystemaccess.https.html": [
     33        "slow"
     34    ],
     35    "imported/w3c/encrypted-media/drm-events.https.html": [
     36        "slow"
     37    ],
     38    "imported/w3c/encrypted-media/drm-expiration.https.html": [
     39        "slow"
     40    ],
     41    "imported/w3c/encrypted-media/drm-keystatuses-multiple-sessions.https.html": [
     42        "slow"
     43    ],
     44    "imported/w3c/encrypted-media/drm-keystatuses.https.html": [
     45        "slow"
     46    ],
     47    "imported/w3c/encrypted-media/drm-mp4-playback-destroy-persistent-license.https.html": [
     48        "slow"
     49    ],
     50    "imported/w3c/encrypted-media/drm-mp4-playback-persistent-license-events.https.html": [
     51        "slow"
     52    ],
     53    "imported/w3c/encrypted-media/drm-mp4-playback-persistent-license.https.html": [
     54        "slow"
     55    ],
     56    "imported/w3c/encrypted-media/drm-mp4-playback-persistent-usage-record-events.https.html": [
     57        "slow"
     58    ],
     59    "imported/w3c/encrypted-media/drm-mp4-playback-persistent-usage-record.https.html": [
     60        "slow"
     61    ],
     62    "imported/w3c/encrypted-media/drm-mp4-playback-retrieve-destroy-persistent-license.https.html": [
     63        "slow"
     64    ],
     65    "imported/w3c/encrypted-media/drm-mp4-playback-retrieve-persistent-license.https.html": [
     66        "slow"
     67    ],
     68    "imported/w3c/encrypted-media/drm-mp4-playback-retrieve-persistent-usage-record.https.html": [
     69        "slow"
     70    ],
     71    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-clear-encrypted.https.html": [
     72        "slow"
     73    ],
     74    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-encrypted-clear-sources.https.html": [
     75        "slow"
     76    ],
     77    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-encrypted-clear.https.html": [
     78        "slow"
     79    ],
     80    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-events.https.html": [
     81        "slow"
     82    ],
     83    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-expired.https.html": [
     84        "slow"
     85    ],
     86    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-multikey-sequential-readyState.https.html": [
     87        "slow"
     88    ],
     89    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-multikey-sequential.https.html": [
     90        "slow"
     91    ],
     92    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-multikey.https.html": [
     93        "slow"
     94    ],
     95    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-multisession.https.html": [
     96        "slow"
     97    ],
     98    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-setMediaKeys-after-src.https.html": [
     99        "slow"
     100    ],
     101    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-setMediaKeys-after-update.https.html": [
     102        "slow"
     103    ],
     104    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-setMediaKeys-immediately.https.html": [
     105        "slow"
     106    ],
     107    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-setMediaKeys-onencrypted.https.html": [
     108        "slow"
     109    ],
     110    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-two-videos.https.html": [
     111        "slow"
     112    ],
     113    "imported/w3c/encrypted-media/drm-mp4-playback-temporary-waitingforkey.https.html": [
     114        "slow"
     115    ],
     116    "imported/w3c/encrypted-media/drm-mp4-playback-temporary.https.html": [
     117        "slow"
     118    ],
     119    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-again-after-playback.https.html": [
     120        "slow"
     121    ],
     122    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-again-after-resetting-src.https.html": [
     123        "slow"
     124    ],
     125    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-at-same-time.https.html": [
     126        "slow"
     127    ],
     128    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-multiple-times-with-different-mediakeys.https.html": [
     129        "slow"
     130    ],
     131    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-multiple-times-with-the-same-mediakeys.https.html": [
     132        "slow"
     133    ],
     134    "imported/w3c/encrypted-media/drm-mp4-setmediakeys-to-multiple-video-elements.https.html": [
     135        "slow"
     136    ],
     137    "imported/w3c/encrypted-media/drm-mp4-waiting-for-a-key.https.html": [
     138        "slow"
     139    ],
     140    "imported/w3c/encrypted-media/drm-temporary-license-type.https.html": [
     141        "slow"
     142    ],
    20143    "imported/w3c/web-animations/timing-model/animations/updating-the-finished-state.html": [
    21144        "slow"
Note: See TracChangeset for help on using the changeset viewer.