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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended.html

Issue 2140133005: Remove MediaStream ended event from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | third_party/WebKit/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: third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended.html b/third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended.html
deleted file mode 100644
index ea9fc6624de18c0da03829d32987fd033a46c249..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description("Tests MediaStream::onended callback.");
-
-function error() {
- testFailed('Stream generation failed.');
- finishJSTest();
-}
-
-function getUserMedia(dictionary, callback) {
- try {
- navigator.webkitGetUserMedia(dictionary, callback, error);
- } catch (e) {
- testFailed('webkitGetUserMedia threw exception :' + e);
- finishJSTest();
- }
-}
-
-var stream;
-
-function streamEnded2() {
- testPassed('streamEnded was called.');
- finishJSTest();
-}
-
-function gotStream2(s) {
- stream = new webkitMediaStream(s);
- try {
- stream.onended = streamEnded2;
- s.getAudioTracks()[0].stop();
- s.getVideoTracks()[0].stop();
- } catch (e) {
- testFailed('MediaStream threw exception :' + e);
- finishJSTest();
- }
-}
-
-function streamEnded() {
- testPassed('streamEnded was called.');
- getUserMedia({audio:true, video:true}, gotStream2);
-}
-
-function gotStream(s) {
- stream = s;
- try {
- stream.onended = streamEnded;
- s.getAudioTracks()[0].stop();
- s.getVideoTracks()[0].stop();
- } catch (e) {
- testFailed('MediaStream threw exception :' + e);
- finishJSTest();
- }
-}
-
-getUserMedia({audio:true, video:true}, gotStream);
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/mediastream/MediaStream-onended-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698