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..1f5baaf4a94104761f925fa126cc46a6e74990dc 100644 |
--- a/chrome/test/data/webrtc/getusermedia.js |
+++ b/chrome/test/data/webrtc/getusermedia.js |
@@ -37,6 +37,16 @@ function getUserMedia(requestVideo, requestAudio) { |
} |
/** |
+ * This function cancel the GetUserMedia request by reloading the web page. |
+ */ |
phoglund_chromium
2012/07/04 14:20:58
I think it makes more sense to call this guy Reloa
no longer working on chromium
2012/07/05 14:05:19
Done.
|
+function CancelGetUserMediaRequest() { |
+ location.reload(); |
+ |
phoglund_chromium
2012/07/04 14:20:58
Reloading page
no longer working on chromium
2012/07/05 14:05:19
Done.
|
+ debug("Cancelling GetUserMedia request."); |
phoglund_chromium
2012/07/04 14:20:58
ok-reloaded-page
no longer working on chromium
2012/07/05 14:05:19
Done.
|
+ returnToPyAuto('ok-calceled-request'); |
+} |
+ |
+/** |
* 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 +83,4 @@ function getUserMediaOkCallback(stream) { |
function getUserMediaFailedCallback(error) { |
gRequestWebcamAndMicrophoneResult = 'failed-with-error-' + error.code; |
phoglund_chromium
2012/07/04 14:20:58
Not sure what happened on this line?
no longer working on chromium
2012/07/05 14:05:19
Not sure, it does not change anything in my editor
|
-} |
+} |