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

Unified Diff: content/test/data/media/getusermedia_and_stop.html

Issue 11413065: Adding first WebRTC browser test to content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disabled audio-only test for now: need proper fake device support first. Created 8 years, 1 month 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
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/getusermedia_and_stop.html
diff --git a/content/test/data/media/getusermedia_and_stop.html b/content/test/data/media/getusermedia_and_stop.html
new file mode 100644
index 0000000000000000000000000000000000000000..f1c43bef012ea30a1bfd607e34e4b080ea8b2e17
--- /dev/null
+++ b/content/test/data/media/getusermedia_and_stop.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+ <script type="text/javascript">
+ function getUserMedia(constraints) {
+ navigator.webkitGetUserMedia(constraints, okCallback, failedCallback);
+ }
+
+ function failedCallback(error) {
+ document.title = 'GetUserMedia call failed with code ' + error.code;
+ }
+
+ function okCallback(stream) {
+ stream.stop();
+ document.title = 'OK';
+ }
+ </script>
+</head>
+</html>
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698