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

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

Issue 2097563002: Split the mediastream module in Blink into mediastream and peerconnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEPS file Created 4 years, 6 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: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
deleted file mode 100644
index 8d0085990c7e70217c25ea9c2ac4522619d162bf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-dtmf.html
+++ /dev/null
@@ -1,66 +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(null);');
- 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