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

Unified Diff: LayoutTests/fast/mediastream/MediaStream-onended.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
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/MediaStream-onended-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/MediaStream-onended.html
diff --git a/LayoutTests/fast/mediastream/MediaStream-onended.html b/LayoutTests/fast/mediastream/MediaStream-onended.html
index 3cd40cb337b1c4798f8e9a8e9186e14426b66f23..ea9fc6624de18c0da03829d32987fd033a46c249 100644
--- a/LayoutTests/fast/mediastream/MediaStream-onended.html
+++ b/LayoutTests/fast/mediastream/MediaStream-onended.html
@@ -27,16 +27,15 @@ var stream;
function streamEnded2() {
testPassed('streamEnded was called.');
- shouldBeTrue('stream.ended');
finishJSTest();
}
function gotStream2(s) {
stream = new webkitMediaStream(s);
- shouldBeFalse('stream.ended');
try {
stream.onended = streamEnded2;
- s.stop();
+ s.getAudioTracks()[0].stop();
+ s.getVideoTracks()[0].stop();
} catch (e) {
testFailed('MediaStream threw exception :' + e);
finishJSTest();
@@ -45,17 +44,15 @@ function gotStream2(s) {
function streamEnded() {
testPassed('streamEnded was called.');
- shouldBeTrue('stream.ended');
-
getUserMedia({audio:true, video:true}, gotStream2);
}
function gotStream(s) {
stream = s;
- shouldBeFalse('stream.ended');
try {
stream.onended = streamEnded;
- stream.stop();
+ s.getAudioTracks()[0].stop();
+ s.getVideoTracks()[0].stop();
} catch (e) {
testFailed('MediaStream threw exception :' + e);
finishJSTest();
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/MediaStream-onended-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698