Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL:
Patch Set: Merge branch 'master' into wpt_import Created 4 years, 6 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: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html
deleted file mode 100644
index 81cce51c1ed9c82d3e774e93ac448ee5ba9c8951..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStream-idl.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!doctype html>
-<title>MediaStream constructor algorithm</title>
-<link rel="author" title="Dominique Hazael-Massieux" href=""/>
-<link rel="help" href="">
-<link rel="help" href="">
-<link rel="help" href="">
-<link rel="help" href="">
-<link rel="help" href="">
-<link rel="help" href="">
-<p class="instructions">When prompted, accept to share your video and audio stream.</p>
-<h1 class="instructions">Description</h1>
-<p class="instructions">This test checks that the MediaStream constructor
-follows the algorithm set in the spec.</p>
-<div id='log'></div>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["navigator"], "name":"getUserMedia"},{"ancestors":["window"], "name":"MediaStream"}]'></script>
-var t = async_test("Tests that a MediaStream constructor follows the algorithm set in the spec", {timeout: 10000});
-t.step(function() {
- navigator.getUserMedia({video: true, audio:true}, t.step_func(function (stream) {
- var stream1 = new MediaStream();
- assert_not_equals(,, "Two different MediaStreams have different ids");
- var stream2 = new MediaStream(stream);
- assert_not_equals(,, "A MediaStream constructed from another have different ids");
- var audioTrack1 = stream.getAudioTracks()[0];
- var videoTrack = stream.getVideoTracks()[0];
- assert_equals(audioTrack1, stream2.getAudioTracks()[0], "A MediaStream constructed from another share the same audio track");
- assert_equals(videoTrack, stream2.getVideoTracks()[0], "A MediaStream constructed from another share the same video track");
- var stream4 = new MediaStream([audioTrack1]);
- assert_equals(stream4.getTrackById(, audioTrack1, "a non-ended track gets added via the MediaStream constructor");
- var audioTrack2 = audioTrack1.clone();
- audioTrack2.addEventListener("ended", t.step_func(function () {
- var stream3 = new MediaStream([audioTrack2, videoTrack]);
- assert_equals(stream3.getTrackById(, null, "an ended track doesn't get added via the MediaStream constructor");
- assert_equals(stream3.getTrackById(, videoTrack, "a non-ended track gets added via the MediaStream constructor even if the previous track was ended");
- var stream5 = new MediaStream([audioTrack2]);
- assert_false(, "a MediaStream created using the MediaStream() constructor whose arguments are lists of MediaStreamTrack objects that are all ended, the MediaStream object MUST be created with its active attribute set to false");
- t.done();
- }), false);
- audioTrack2.stop();
- }), function(error) {});

Powered by Google App Engine
This is Rietveld 408576698