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

Unified Diff: LayoutTests/fast/mediastream/MediaStream-stop.html

Issue 201353002: MediaStream API: Adding missing observer calls for remote tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test added Created 6 years, 9 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-stop-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/MediaStream-stop.html
diff --git a/LayoutTests/fast/mediastream/MediaStream-stop.html b/LayoutTests/fast/mediastream/MediaStream-stop.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8afe6ffa17e008a6f55f191f0d468c4838b295f
--- /dev/null
+++ b/LayoutTests/fast/mediastream/MediaStream-stop.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Test cloning mediastreams onended.");
+
+var cloned_stream;
+
+function onStreamEnded() {
+ testPassed('Stream ended.');
+ finishJSTest();
+}
+
+function onTrackAdded() {
+ testPassed('Mock test track added.');
+ shouldBe('cloned_stream.getVideoTracks().length', '1');
+ cloned_stream.getVideoTracks()[0].stop();
+}
+
+function run(s) {
+ cloned_stream = new webkitMediaStream();
+ cloned_stream.onaddtrack = onTrackAdded;
+ cloned_stream.onended = onStreamEnded;
+}
+
+run();
+
+window.jsTestIsAsync = true;
+window.successfullyParsed = true;
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/MediaStream-stop-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698