| Index: third_party/WebKit/LayoutTests/external/wpt/media-capabilities/decodingInfo.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/media-capabilities/query.html b/third_party/WebKit/LayoutTests/external/wpt/media-capabilities/decodingInfo.html
|
| similarity index 77%
|
| rename from third_party/WebKit/LayoutTests/external/wpt/media-capabilities/query.html
|
| rename to third_party/WebKit/LayoutTests/external/wpt/media-capabilities/decodingInfo.html
|
| index f1bd22ba1ae3f7c97e205a60a2d76dcdc08d3b32..a0e0d342682bca427fd2006e35dfd8c0cad40beb 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/media-capabilities/query.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/media-capabilities/decodingInfo.html
|
| @@ -1,5 +1,5 @@
|
| <!DOCTYPE html>
|
| -<title>MediaCapabilities.query()</title>
|
| +<title>MediaCapabilities.decodingInfo()</title>
|
| <script src=/resources/testharness.js></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <script>
|
| @@ -21,22 +21,22 @@ var minimalAudioConfiguration = {
|
| };
|
|
|
| promise_test(t => {
|
| - return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.query());
|
| -}, "Test that query rejects if it doesn't get a configuration");
|
| + return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.decodingInfo());
|
| +}, "Test that decodingInfo rejects if it doesn't get a configuration");
|
|
|
| promise_test(t => {
|
| - return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.query({}));
|
| -}, "Test that query rejects if the MediaConfiguration isn't valid");
|
| + return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.decodingInfo({}));
|
| +}, "Test that decodingInfo rejects if the MediaConfiguration isn't valid");
|
|
|
| promise_test(t => {
|
| - return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.query({
|
| + return promise_rejects(t, new TypeError(), navigator.mediaCapabilities.decodingInfo({
|
| video: minimalVideoConfiguration,
|
| audio: minimalAudioConfiguration,
|
| }));
|
| -}, "Test that query rejects if the MediaConfiguration does not have a type");
|
| +}, "Test that decodingInfo rejects if the MediaConfiguration does not have a type");
|
|
|
| promise_test(t => {
|
| - return navigator.mediaCapabilities.query({
|
| + return navigator.mediaCapabilities.decodingInfo({
|
| type: 'file',
|
| video: minimalVideoConfiguration,
|
| audio: minimalAudioConfiguration,
|
| @@ -45,7 +45,7 @@ promise_test(t => {
|
| assert_idl_attribute(ability, 'smooth');
|
| assert_idl_attribute(ability, 'powerEfficient');
|
| });
|
| -}, "Test that query returns a valid MediaDecodingAbility objects");
|
| +}, "Test that decodingInfo returns a valid MediaCapabilitiesInfo objects");
|
|
|
| async_test(t => {
|
| var validTypes = [ 'file', 'media-source' ];
|
| @@ -55,7 +55,7 @@ async_test(t => {
|
| var invalidCaught = 0;
|
|
|
| validTypes.forEach(type => {
|
| - validPromises.push(navigator.mediaCapabilities.query({
|
| + validPromises.push(navigator.mediaCapabilities.decodingInfo({
|
| type: type,
|
| video: minimalVideoConfiguration,
|
| audio: minimalAudioConfiguration,
|
| @@ -68,7 +68,7 @@ async_test(t => {
|
| // when rejected until the amount of rejection matches the expectation.
|
| Promise.all(validPromises).then(t.step_func(() => {
|
| for (var i = 0; i < invalidTypes.length; ++i) {
|
| - navigator.mediaCapabilities.query({
|
| + navigator.mediaCapabilities.decodingInfo({
|
| type: invalidTypes[i],
|
| video: minimalVideoConfiguration,
|
| audio: minimalAudioConfiguration,
|
| @@ -80,6 +80,6 @@ async_test(t => {
|
| }));
|
| }
|
| }), t.unreached_func('Promise.all should not reject for valid types'));
|
| -}, "Test that query rejects if the MediaConfiguration does not have a valid type");
|
| +}, "Test that decodingInfo rejects if the MediaConfiguration does not have a valid type");
|
|
|
| </script>
|
|
|