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

Unified Diff: LayoutTests/fast/mediastream/MediaStreamConstructor.html

Issue 827673002: Add MediaStream.active attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 11 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: LayoutTests/fast/mediastream/MediaStreamConstructor.html
diff --git a/LayoutTests/fast/mediastream/MediaStreamConstructor.html b/LayoutTests/fast/mediastream/MediaStreamConstructor.html
index 98ebca9cd6fbb85169e815253f62e52183995287..324c389253cb938cf1e131bd89a62b1f5f5197c8 100644
--- a/LayoutTests/fast/mediastream/MediaStreamConstructor.html
+++ b/LayoutTests/fast/mediastream/MediaStreamConstructor.html
@@ -85,7 +85,7 @@ function testConstructor(s) {
verifyStream(new webkitMediaStream([s.getAudioTracks()[0], s.getVideoTracks()[0]]), 1, 1);
verifyStream(new webkitMediaStream([s.getVideoTracks()[0], s.getAudioTracks()[0], s.getVideoTracks()[0]]), 1, 1);
- s.onended = function () {
+ s.oninactive = function () {
verifyStream(new webkitMediaStream([s.getAudioTracks()[0]]), 0, 0);
verifyStream(new webkitMediaStream([s.getVideoTracks()[0]]), 0, 0);
verifyStream(new webkitMediaStream([s.getAudioTracks()[0], s.getVideoTracks()[0]]), 0, 0);
@@ -109,6 +109,11 @@ function verifyStream(s, numAudioTracks, numVideoTracks) {
shouldBe('newStream.getAudioTracks().length', 'nAudio');
shouldBe('newStream.getVideoTracks().length', 'nVideo');
+ if (!nAudio && !nVideo)
+ shouldBe('newStream.active', 'false');
+ else
+ shouldBe('newStream.active', 'true');
+
shouldBeTrue('checkIdAttribute(newStream.id)');
}

Powered by Google App Engine
This is Rietveld 408576698