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

Unified Diff: LayoutTests/fast/mediastream/LocalMediaStream-onended.html

Issue 14188039: MediaStream API: Remove LocalMediaStream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 7 years, 8 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/LocalMediaStream-onended-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/LocalMediaStream-onended.html
diff --git a/LayoutTests/fast/mediastream/LocalMediaStream-onended.html b/LayoutTests/fast/mediastream/LocalMediaStream-onended.html
deleted file mode 100644
index cad10dc1cf14fc2136e5a4795f14ddcd090a3e5a..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/mediastream/LocalMediaStream-onended.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<link rel="stylesheet" href="../js/resources/js-test-style.css">
-<script src="../js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description("Tests LocalMediaStream::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 streamEnded() {
- testPassed('streamEnded was called.');
- shouldBeTrue('stream.ended');
- finishJSTest();
-}
-
-function gotStream(s) {
- stream = s;
- shouldBeFalse('stream.ended');
- try {
- stream.onended = streamEnded;
- stream.stop();
- } catch (e) {
- testFailed('LocalMediaStream threw exception :' + e);
- finishJSTest();
- }
-}
-
-getUserMedia({audio:true, video:true}, gotStream);
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-<script src="../js/resources/js-test-post.js"></script>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/LocalMediaStream-onended-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698