Chromium Code Reviews| Index: LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html |
| diff --git a/LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html b/LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3154d4fabb6cbc39ad36324e11c3f3094c7c3753 |
| --- /dev/null |
| +++ b/LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| +<html> |
| +<head> |
| +<script src="../../resources/js-test.js"></script> |
| +</head> |
| +<body> |
| +<p id="description"></p> |
| +<div id="console"></div> |
| +<script> |
| +description("This test check MediaRecorder.canRecordMimeType()."); |
| + |
| +// Check one Video format that should be recordable and another that should be. |
| +// Supported formats return "maybe". Same for Audio. |
| +// http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods |
| +shouldBe('MediaRecorder.canRecordMimeType("video/invalid")', '""'); |
| +shouldBe('MediaRecorder.canRecordMimeType("video/webm;codecs="vp8")', '"maybe"'); |
|
Guido Urdaneta
2015/07/28 12:28:26
You should fix the syntax error here
mcasas
2015/07/30 13:20:36
canRecordMimeType() gets a String as parameter and
|
| + |
| +shouldBe('MediaRecorder.canRecordMimeType("audio/invalid")', '""'); |
| +shouldBe('MediaRecorder.canRecordMimeType("audio/webm;codecs="opus"")', '"maybe"'); |
|
Guido Urdaneta
2015/07/28 12:28:26
and here
mcasas
2015/07/30 13:20:36
Ditto.
|
| + |
| +//window.jsTestIsAsync = true; |
| +//window.successfullyParsed = true; |
| +</script> |
| +</body> |
| +</html> |