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

Unified Diff: chrome/test/data/webrtc/getusermedia.js

Issue 10696115: Add test to verify we can cancel the GetUserMedia request right after sending the request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Patrik's comments. Created 8 years, 5 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 | chrome/test/functional/webrtc_call.py » ('j') | chrome/test/functional/webrtc_call.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/getusermedia.js
diff --git a/chrome/test/data/webrtc/getusermedia.js b/chrome/test/data/webrtc/getusermedia.js
index bdfd28ce38400e56e06cd5ee05e1a6041f0eb384..8cc3e135d0921a91a14518ec99fc00e95b25a0ad 100644
--- a/chrome/test/data/webrtc/getusermedia.js
+++ b/chrome/test/data/webrtc/getusermedia.js
@@ -37,6 +37,18 @@ function getUserMedia(requestVideo, requestAudio) {
}
/**
+ * This function realods the web page which will cancel the previous
Nirnimesh 2012/07/12 14:07:01 This function reloads -> Reload
+ * GetUserMedia requests.
+ */
+function ReloadWebPage() {
+ // Reload the web page.
+ location.reload();
+
+ debug("Reloading page.");
+ returnToPyAuto('ok-reloaded-page');
+}
+
+/**
* Must be called after calling getUserMedia. Returns not-called-yet if we have
* not yet been called back by WebRTC. Otherwise it returns either ok-got-stream
* or failed-with-error-x (where x is the error code from the error callback)
@@ -73,4 +85,4 @@ function getUserMediaOkCallback(stream) {
function getUserMediaFailedCallback(error) {
gRequestWebcamAndMicrophoneResult = 'failed-with-error-' + error.code;
-}
+}
« no previous file with comments | « no previous file | chrome/test/functional/webrtc_call.py » ('j') | chrome/test/functional/webrtc_call.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698