OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <body> | 4 <body> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 description("Test MediaStream API callbacks in WebView"); | 6 description("Test MediaStream API callbacks in WebView"); |
7 window.jsTestIsAsync = true; | 7 window.jsTestIsAsync = true; |
8 | 8 |
9 function error(e) { | 9 function error(e) { |
10 testFailed('getUserMedia error callback, reason: ' + e.name); | 10 testFailed('getUserMedia error callback, reason: ' + e.name); |
(...skipping 15 matching lines...) Expand all Loading... |
26 } catch (e) { | 26 } catch (e) { |
27 testFailed('webkitGetUserMedia threw exception :' + e); | 27 testFailed('webkitGetUserMedia threw exception :' + e); |
28 finishJSTest(); | 28 finishJSTest(); |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 getUserMedia({audio:true, video:true}, gotStream); | 32 getUserMedia({audio:true, video:true}, gotStream); |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |