| Index: third_party/WebKit/LayoutTests/media/media-can-play-wav-audio.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/media-can-play-wav-audio.html b/third_party/WebKit/LayoutTests/media/media-can-play-wav-audio.html
|
| index 954beb6acfd1d675a2e0f00bf115f761e1d6d103..70f9422f3c3174f8f1586ca9ca6a9b89071f8d7c 100644
|
| --- a/third_party/WebKit/LayoutTests/media/media-can-play-wav-audio.html
|
| +++ b/third_party/WebKit/LayoutTests/media/media-can-play-wav-audio.html
|
| @@ -1,28 +1,17 @@
|
| <!DOCTYPE html>
|
| -<html>
|
| - <head>
|
| - <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
|
| - (Please avoid writing new tests using video-test.js) -->
|
| - <script src=video-test.js></script>
|
| - <script>
|
| - function start()
|
| - {
|
| - audio = document.getElementsByTagName('audio')[0];
|
| +<title>Test HTMLMediaElement's "canPlayType" method with multiple .wav MIME types.</title>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<audio></audio>
|
| +<script>
|
| +test(function() {
|
| + var audio = document.querySelector("audio");
|
| + // These tests may be expected to fail if the platform does not support the format.
|
| + assert_equals(audio.canPlayType("audio/wav"), "maybe");
|
| + assert_equals(audio.canPlayType("audio/x-wav"), "maybe");
|
|
|
| - testExpected("audio.canPlayType('audio/wav')", "maybe");
|
| - testExpected("audio.canPlayType('audio/x-wav')", "maybe");
|
| -
|
| - // WAV codec 1 is basic PCM, refer to http://tools.ietf.org/html/rfc2361
|
| - testExpected("audio.canPlayType('audio/wav; codecs=1')", "probably");
|
| - testExpected("audio.canPlayType('audio/x-wav; codecs=1')", "probably");
|
| -
|
| - endTest();
|
| - }
|
| - </script>
|
| - </head>
|
| - <body onload="start()">
|
| - <audio controls></audio>
|
| - <p>Test HTMLMediaElement <em>canPlayType()</em> method with multiple .wav MIME types.</p>
|
| - <p>These tests may be expected to fail if the WebKit port does not support the format.</p>
|
| - </body>
|
| -</html>
|
| + // WAV codec 1 is basic PCM, refer to http://tools.ietf.org/html/rfc2361
|
| + assert_equals(audio.canPlayType("audio/wav; codecs=1"), "probably");
|
| + assert_equals(audio.canPlayType("audio/x-wav; codecs=1"), "probably");
|
| +});
|
| +</script>
|
|
|