Remove old references to PyAuto

Since the PyAuto tests are gone for WebRTC, remove
all references to them so they don't confuse developers.

BUG=225698

Review URL: https://chromiumcodereview.appspot.com/23908004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222003 0039d316-1c4b-4281-b951-d872f2087c98
parent 047fcf7f
...@@ -40,7 +40,7 @@ $ = function(id) { ...@@ -40,7 +40,7 @@ $ = function(id) {
/** /**
* This function asks permission to use the webcam and mic from the browser. It * This function asks permission to use the webcam and mic from the browser. It
* will return ok-requested to PyAuto. This does not mean the request was * will return ok-requested to the test. This does not mean the request was
* approved though. The test will then have to click past the dialog that * approved though. The test will then have to click past the dialog that
* appears in Chrome, which will run either the OK or failed callback as a * appears in Chrome, which will run either the OK or failed callback as a
* a result. To see which callback was called, use obtainGetUserMediaResult(). * a result. To see which callback was called, use obtainGetUserMediaResult().
......
...@@ -199,7 +199,8 @@ function clearLog() { ...@@ -199,7 +199,8 @@ function clearLog() {
/** /**
* Prepopulate constraints from JS to the UI and setup callbacks in the scripts * Prepopulate constraints from JS to the UI and setup callbacks in the scripts
* shared with PyAuto tests. Enumerates devices available via getUserMedia. * shared with browser tests or automated tests. Enumerates devices available
* via getUserMedia.
*/ */
window.onload = function() { window.onload = function() {
$('pc-createoffer-constraints').value = JSON.stringify( $('pc-createoffer-constraints').value = JSON.stringify(
......
...@@ -73,7 +73,7 @@ var gDtmfSender = null; ...@@ -73,7 +73,7 @@ var gDtmfSender = null;
*/ */
var STUN_SERVER = 'stun.l.google.com:19302'; var STUN_SERVER = 'stun.l.google.com:19302';
// Public interface to PyAuto test. // Public interface to tests.
/** /**
......
...@@ -6,18 +6,19 @@ ...@@ -6,18 +6,19 @@
/** /**
* This list keeps track of failures in the test. This is necessary to keep * This list keeps track of failures in the test. This is necessary to keep
* track of failures that happen outside of PyAuto test calls and need to be * track of failures that happen outside of test calls and need to be reported
* reported asynchronously. * asynchronously.
* @private * @private
*/ */
var gFailures = []; var gFailures = [];
/** /**
* The callback to send test messages to. By default we will assume that we * The callback to send test messages to. By default we will assume that we
* are being run by a PyAuto test case, but this can be overridden. * are being run by an automated test case such as a browser test, but this can
* be overridden.
* @private * @private
*/ */
var gReturnCallback = sendToPyAuto; var gReturnCallback = sendToTest;
/** /**
* The callback to send debug messages to. By default we assume console.log. * The callback to send debug messages to. By default we assume console.log.
...@@ -86,14 +87,14 @@ function returnToTest(message) { ...@@ -86,14 +87,14 @@ function returnToTest(message) {
} }
/** /**
* Sends a message to the PyAuto test case. Requires that this javascript was * Sends a message to the test case. Requires that this javascript was
* loaded by PyAuto. This will make the test proceed if it is blocked in a * loaded by the test. This will make the test proceed if it is blocked in a
* ExecuteJavascript call. * ExecuteJavascript call.
* *
* @param {string} message The message to send. * @param {string} message The message to send.
*/ */
function sendToPyAuto(message) { function sendToTest(message) {
debug('Returning ' + message + ' to PyAuto.'); debug('Returning ' + message + ' to test.');
window.domAutomationController.send(message); window.domAutomationController.send(message);
} }
......
...@@ -21,7 +21,7 @@ var gFingerprints = []; ...@@ -21,7 +21,7 @@ var gFingerprints = [];
* @param {int} width The video element's width. * @param {int} width The video element's width.
* @param {int} width The video element's height. * @param {int} width The video element's height.
* *
* @return {string} Returns ok-started to PyAuto. * @return {string} Returns ok-started to the test.
*/ */
// //
function startDetection(videoElementId, canvasId, width, height) { function startDetection(videoElementId, canvasId, width, height) {
......
...@@ -62,7 +62,7 @@ var gWebSocketOpened = false; ...@@ -62,7 +62,7 @@ var gWebSocketOpened = false;
var gFrameIntervalAdjustment = false; var gFrameIntervalAdjustment = false;
/** /**
* We need this global variable to syncronyze with PyAuto how long to run the * We need this global variable to synchronize with the test how long to run the
* call between the two peers. * call between the two peers.
*/ */
var dDoneFrameCapturing = false; var dDoneFrameCapturing = false;
......
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <html>
<head> <head>
<title>WebRTC PyAuto Test</title> <title>WebRTC Automated Test</title>
<script type="text/javascript" src="adapter.js"></script> <script type="text/javascript" src="adapter.js"></script>
<script type="text/javascript" src="test_functions.js"></script> <script type="text/javascript" src="test_functions.js"></script>
<script type="text/javascript" src="message_handling.js"></script> <script type="text/javascript" src="message_handling.js"></script>
......
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <html>
<head> <head>
<title>WebRTC PyAuto Test</title> <title>WebRTC Automated Test</title>
<script type="text/javascript" src="adapter.js"></script> <script type="text/javascript" src="adapter.js"></script>
<script type="text/javascript" src="test_functions.js"></script> <script type="text/javascript" src="test_functions.js"></script>
<script type="text/javascript" src="message_handling.js"></script> <script type="text/javascript" src="message_handling.js"></script>
......
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <html>
<head> <head>
<title>WebRTC PyAuto Test</title> <title>WebRTC Automated Test</title>
<script type="text/javascript" src="adapter.js"></script> <script type="text/javascript" src="adapter.js"></script>
<script type="text/javascript" src="test_functions.js"></script> <script type="text/javascript" src="test_functions.js"></script>
<script type="text/javascript" src="message_handling.js"></script> <script type="text/javascript" src="message_handling.js"></script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment