Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698