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

Unified Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html

Issue 2591763002: RTCPeerConnection.getStats: Remove selector argument. (Closed)
Patch Set: Added TODO Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html
diff --git a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html
index 79e9c67ec662d812b05af1d0c97a8ef502aa5b93..8d24cbd4d0cd014154d604d844e63fbc0cfaf1a8 100644
--- a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html
+++ b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html
@@ -46,26 +46,22 @@ function assert_expected_report(report) {
}
promise_test(function() {
+ let test = this;
return navigator.mediaDevices.getUserMedia({audio:true, video:true})
.then(function(mediaStream) {
pc.addStream(mediaStream);
var selector = pc.getLocalStreams()[0].getVideoTracks()[0];
assert_not_equals(selector, null);
- return pc.getStats(selector)
- .then(function(report) {
- assert_expected_report(report);
- });
+ return promise_rejects(test, new TypeError(), pc.getStats(selector));
});
}, 'getStats(MediaStreamTrack selector)');
promise_test(function() {
+ let test = this;
return navigator.mediaDevices.getUserMedia({audio:true, video:true})
.then(function(mediaStream) {
pc.addStream(mediaStream);
- return pc.getStats(null)
- .then(function(report) {
- assert_expected_report(report);
- });
+ return promise_rejects(test, new TypeError(), pc.getStats(null));
});
}, 'getStats(null)');
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698