local media stream no longer exists
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 30 May 2013 14:14:51 +0200
changeset 33 64a5c78e735b
parent 32 344cd96e7c98
child 34 cd4a06432643
local media stream no longer exists
submitted/W3C/localstream-stop.html
--- a/submitted/W3C/localstream-stop.html	Thu May 30 14:13:20 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title>getUserMedia({video:true}) creates a local stream with a stop method</title>
-<link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/>
-<link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#methods">
-<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 stop() method.</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 LocalMediaStream handles stop() correctly");
-t.step(function () {
-  navigator.getUserMedia({video:true}, function (stream) {
-    // onended is not supposed to be fired when stop() is invoked
-    stream.onended = t.step_func(function () {
-      assert_unreached("onended is not fired when stop is invoked");
-      t.done();
-    });
-
-    stream.stop();
-    t.step(function () { 
-      for (var i = 0; i < stream.videoTracks.length; i++) {
-  	assert_equals(stream.videoTracks[i].readyState, stream.videoTracks[i].ENDED, "Video Track #" + i + " ended");
-      }
-      assert_true(stream.ended);
-      t.done();
-    });
-  });
-});
-</script>
-</body>
-</html>