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

Unified Diff: LayoutTests/fast/mediastream/getMediaDevices.html

Issue 286673003: MediaStream API: Patch #3 of implementing navigator.getMediaDevices (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Initial patch by tommyw@ from https://codereview.chromium.org/145583015/ Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/getMediaDevices-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/getMediaDevices.html
diff --git a/LayoutTests/fast/mediastream/getMediaDevices.html b/LayoutTests/fast/mediastream/getMediaDevices.html
new file mode 100644
index 0000000000000000000000000000000000000000..32faaaef50fa73a768f86d4a753a8f13b25bc340
--- /dev/null
+++ b/LayoutTests/fast/mediastream/getMediaDevices.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Tests navigator.getMediaDevices");
+
+var devices = null;
+
+function devicesCallback(d) {
+ devices = d;
+ testPassed('Devices returned.');
+ shouldBe('devices.length', '3');
+ shouldBeEqualToString('devices[0].kind', 'audioinput');
+ shouldBeEqualToString('devices[1].kind', 'audiooutput');
+ shouldBeEqualToString('devices[2].kind', 'videoinput');
jochen (gone - plz use gerrit) 2014/05/15 10:50:47 is it possible to assert something about the other
Henrik Grunell 2014/05/15 13:03:55 Done.
+ finishJSTest();
+}
+
+shouldNotThrow("navigator.getMediaDevices(devicesCallback);");
+testPassed('After getMediaDevices');
+
+window.jsTestIsAsync = true;
+window.successfullyParsed = true;
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/getMediaDevices-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698