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/RTCPeerConnection-statsSelector.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: Copy OWNERS file from mediastream/ to peerconnection/ 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-statsSelector.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector.html b/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector.html
deleted file mode 100644
index 4213eb625cac1d40e033b64559fe1a557337881d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-statsSelector.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests the RTCPeerConnection stats selector argument.");
-
-var pc = null;
-var result;
-
-function getUserMedia(dictionary, callback) {
- try {
- navigator.webkitGetUserMedia(dictionary, callback, error);
- } catch (e) {
- testFailed('webkitGetUserMedia threw exception :' + e);
- finishJSTest();
- }
-}
-
-function error() {
- testFailed('Stream generation failed.');
- finishJSTest();
-}
-
-function gotStream(s) {
- testPassed('Got a stream.');
- stream = s;
-
- pc.addStream(stream);
- shouldNotThrow('pc.getStats(statsHandler2, pc.getLocalStreams()[0].getVideoTracks()[0])');
-}
-
-function statsHandler2(status)
-{
- testPassed("statsHandler2 was called");
- result = status.result();
- shouldBeGreaterThanOrEqual('result.length', '1');
- // Windows XP sometimes gives time that appears to go backwards.
- // This hack will make the tests non-flaky if it never goes backwards
- // by more than 20 milliseconds.
- // Up to 10 milliseconds has been observed on XP, 2 milliseconds on Win7.
- fudgeForXP = 20;
- res = result[0];
- timediff = res.timestamp - startTime + fudgeForXP;
- shouldBeGreaterThanOrEqual('timediff', '0');
- shouldBe('res.stat("type")', '"video"');
- finishJSTest();
-}
-
-var startTime = new Date().getTime();
-shouldNotThrow('pc = new webkitRTCPeerConnection(null)');
-shouldNotThrow('getUserMedia({audio:true, video:true}, gotStream)');
-
-window.jsTestIsAsync = true;
-window.successfullyParsed = true;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698