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/MediaStreamTrack-init.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/MediaStreamTrack-init.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.html
deleted file mode 100644
index 3aa12052d5d3cda25f5ef080b364fd64fed2cf7c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrack-init.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!doctype html>
-<title>getUserMedia({video:true}) creates a stream with a properly initialized video track</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="">
-<p class="instructions">When prompted, accept to share your video stream.</p>
-<h1 class="instructions">Description</h1>
-<p class="instructions">This test checks that the video track of MediaStream
-object returned by the success callback in getUserMedia is correctly initialized.</p>
-<div id='log'></div>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<script src=/resources/WebIDLParser.js></script>
-<script src=/resources/idlharness.js></script>
-<script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["navigator"], "name":"getUserMedia"}]'></script>
-var t = async_test("Tests that the video MediaStreamTrack objects are properly initialized", {timeout:10000});
-var track = null
-var idl_array = new IdlArray();
-idl_array.add_idls("interface EventTarget {\
- void addEventListener(DOMString type, EventListener? callback, optional boolean capture = false);\
- void removeEventListener(DOMString type, EventListener? callback, optional boolean capture = false);\
- boolean dispatchEvent(Event event);\
-idl_array.add_idls("interface MediaStreamTrack : EventTarget {\
- readonly attribute DOMString kind;\
- readonly attribute DOMString id;\
- readonly attribute DOMString label;\
- attribute boolean enabled;\
- readonly attribute boolean muted;\
- attribute EventHandler onmute;\
- attribute EventHandler onunmute;\
- readonly attribute boolean _readonly;\
- readonly attribute boolean remote;\
- readonly attribute MediaStreamTrackState readyState;\
- attribute EventHandler onended;\
- attribute EventHandler onoverconstrained;\
- MediaStreamTrack clone ();\
- void stop ();\
- MediaTrackCapabilities getCapabilities ();\
- MediaTrackConstraints getConstraints ();\
- MediaTrackSettings getSettings ();\
- Promise<void> applyConstraints (optional MediaTrackConstraints constraints);\
-t.step(function () {
- navigator.getUserMedia({video: true}, t.step_func(function (stream) {
- var videoTracks = stream.getVideoTracks();
- assert_equals(videoTracks.length, 1, "There is exactly one video track in the media stream");
- track = videoTracks[0];
- idl_array.add_objects({MediaStreamTrack: ["track"]});
- idl_array.test();
- assert_equals(track.readyState, "live", "The track object is in live state");
- assert_equals(track.kind, "video", "The track object is of video kind");
- // Not clear that this is required by the spec,
- // see
- assert_true(track.enabled, "The track object is enabed");
- t.done();
- }), function (error) {});

Powered by Google App Engine
This is Rietveld 408576698