label no longer part of stream interface in mcs
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 30 May 2013 15:53:43 +0200
changeset 39 1491f380b3b5
parent 38 76c7d79886ac
child 40 dd43e3cbd9ee
label no longer part of stream interface in mcs
submitted/W3C/stream-label.html
--- a/submitted/W3C/stream-label.html	Thu May 30 15:50:04 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title>getUserMedia({video:true}) creates a stream with a label</title>
-<link rel="author" title="Dominique Hazael-Massieux" href="mailto:[email protected]"/>
-<link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#attributes">
-<link rel='stylesheet' href='/resources/testharness.css' media='all'/>
-</head>
-<body>
-<p>When prompted, accept to share your video stream.</p>
-<h1>Description</h1>
-<p>This test checks that the LocalMediaStream object returned by the success callback in getUserMedia has a correct label.</p>
-
-<div id='log'></div>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<script src=featuredetection.js></script>
-<script src=prefix.js></script>
-<script>
-var t = async_test("Tests that a MediaStream with a correct label is returned");
-var allowedCharacters = /^[\u0021\u0023-\u0027\u002A-\u002B\u002D-\u002E\u0030-\u0039\u0041-\u005A\u005E-\u007E]*$/;
-t.step(function () {
-  navigator.getUserMedia({video: true}, t.step_func(function (stream) {
-     assert_true(stream.label.length === 36, "the media stream label has 36 characters");
-     assert_regexp_match(stream.label, allowedCharacters, "the media stream label uses the set of allowed characters");
-     t.done();
-  }));
-});
-</script>
-</body>
-</html>