Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <p id="description"></p> | |
| 8 <div id="console"></div> | |
| 9 <script> | |
| 10 description("This test check MediaRecorder.canRecordMimeType()."); | |
| 11 | |
| 12 // Check one Video format that should be recordable and another that should be. | |
| 13 // Supported formats return "maybe". Same for Audio. | |
| 14 // http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods | |
| 15 shouldBe('MediaRecorder.canRecordMimeType("video/invalid")', '""'); | |
| 16 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
 
 | |
| 17 | |
| 18 shouldBe('MediaRecorder.canRecordMimeType("audio/invalid")', '""'); | |
| 19 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.
 
 | |
| 20 | |
| 21 //window.jsTestIsAsync = true; | |
| 22 //window.successfullyParsed = true; | |
| 23 </script> | |
| 24 </body> | |
| 25 </html> | |
| OLD | NEW |