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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html

Issue 2360123002: Import wpt@3801ab5834101113e5f53bfb57e3c76b2b87ecbb (Closed)
Patch Set: Mark the failing test to Win only Created 4 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: third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html
index b1f54907b3ad6fd6d96a2ec0feee2d936672444b..8f5a543d8fbed8b046deab4672729a112842faba 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html
@@ -29,15 +29,14 @@ test(function() {
});
}, "The eventInitDict's track member is required.");
-// a MediaStreamTrack instance is needed to test, any instance will do.
-promise_test(function() {
- return navigator.mediaDevices.getUserMedia({ video: true })
- .then(function(stream) {
- var track = stream.getTracks()[0];
- assert_true(track instanceof MediaStreamTrack);
- var event = new MediaStreamTrackEvent("type", { track: track });
- assert_equals(event.type, "type");
- assert_equals(event.track, track);
- });
+test(function() {
+ // a MediaStreamTrack instance is needed to test, any instance will do.
+ var context = new AudioContext();
+ var dest = context.createMediaStreamDestination();
+ var track = dest.stream.getTracks()[0];
+ assert_true(track instanceof MediaStreamTrack);
+ var event = new MediaStreamTrackEvent("type", { track: track });
+ assert_equals(event.type, "type");
+ assert_equals(event.track, track);
}, "The MediaStreamTrackEvent instance's track attribute is set.");
</script>

Powered by Google App Engine
This is Rietveld 408576698