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

Unified Diff: LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html

Issue 650063002: Move MediaStream and MediaStreamTrack implementation from modules/mediastream to core/mediastream. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 2 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/RTCPeerConnection-dtmf.html
diff --git a/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html b/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
deleted file mode 100644
index edfec69adb9ae5ccd76003372fdf5373aeeeda2d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests RTCDTMFSender.");
-
-var pc = null;
-var stream = null;
-var dtmfsender = null;
-
-function error() {
- testFailed('Error callback called.');
- finishJSTest();
-}
-
-var firstCall = true;
-
-function ontonechange(e) {
- testPassed("ontonechange was called.");
- event = e;
- if (firstCall) {
- shouldBeEqualToString('event.tone', "1");
- firstCall = false;
- } else {
- shouldBeEqualToString('event.tone', "");
- finishJSTest();
- }
-}
-
-function pc_onicechange() {
- if (pc.iceConnectionState === "completed") {
- testPassed("pc is connected");
- track = stream.getAudioTracks()[0];
-
- shouldThrow('dtmfsender = pc.createDTMFSender(track);');
- pc.addStream(stream);
- shouldNotThrow('dtmfsender = pc.createDTMFSender(track);');
- shouldBeTrue('dtmfsender.canInsertDTMF');
-
- dtmfsender.ontonechange = ontonechange;
- dtmfsender.insertDTMF("1");
- shouldBeEqualToString('dtmfsender.toneBuffer', "1");
- }
-}
-
-function gotStream(s) {
- stream = s;
- testPassed('Stream generated.');
- shouldBe('stream.getAudioTracks().length', '1');
- shouldBe('stream.getVideoTracks().length', '0');
-
- pc = new webkitRTCPeerConnection(null, null);
- pc.oniceconnectionstatechange = pc_onicechange;
-}
-
-shouldNotThrow("navigator.webkitGetUserMedia({audio:true}, gotStream, error);");
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698