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

Unified Diff: LayoutTests/imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/stream-ended.html

Issue 1312213006: Remove MediaStream label, ended attributes and stop() method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
Index: LayoutTests/imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/stream-ended.html
diff --git a/LayoutTests/imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/stream-ended.html b/LayoutTests/imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/stream-ended.html
deleted file mode 100644
index 31abbd43cf6b7af5cc41bf8297a475e324eecb9d..0000000000000000000000000000000000000000
--- a/LayoutTests/imported/web-platform-tests/mediacapture-streams/stream-api/mediastream/stream-ended.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title>getUserMedia({video:true}) creates a stream with ended set to false</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#widl-MediaStream-ended">
-<link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#event-mediastream-ended">
-<link rel='stylesheet' href='../../../../../resources/testharness.css' media='all'/>
-</head>
-<body>
-<p class="instructions" style="display:none">When prompted, accept to share your video stream.</p>
-<h1 class="instructions" style="display:none">Description</h1>
-<p class="instructions" style="display:none">This test checks that the MediaStream object returned by
-the success callback in getUserMedia has a ended set to false at start, and
-triggers "onended" when it is set to true.</p>
-
-<div id='log'></div>
-<script src=../../../../../resources/testharness.js></script>
-<script src=../../../../../resources/testharnessreport.js></script>
-<script src="../../../../../resources/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["navigator"], "name":"getUserMedia"}]'></script>
-<script>
-var t = async_test("Tests that a MediaStream handles ended correctly", {timeout:10000});
-t.step(function () {
- navigator.getUserMedia({video:true}, t.step_func(function (stream) {
- assert_true(!stream.ended, "the media stream starts with ended set to false");
- stream.addEventListener("ended", t.step_func(function() {
- assert_true(stream.ended, "stream.ended now set to true");
- t.done();
- }), false);
- stream.ended = true;
- assert_true(!stream.ended, "stream.ended should remain false");
- stream.getVideoTracks()[0].stop();
- }), function (error) {});
-});
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698