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

Unified Diff: remoting/webapp/browser_test/browser_test.js

Issue 389673003: Handle host need upgrade in Pin browser test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Jamie's feedbacks Created 6 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 | remoting/webapp/browser_test/cancel_pin_browser_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_test/browser_test.js
diff --git a/remoting/webapp/browser_test/browser_test.js b/remoting/webapp/browser_test/browser_test.js
index 786000291a468554220106784aefca1e846718cd..2c385bb986a59c9035cde3fea17674bd06313b0f 100644
--- a/remoting/webapp/browser_test/browser_test.js
+++ b/remoting/webapp/browser_test/browser_test.js
@@ -156,6 +156,21 @@ browserTest.onUIMode = function(expectedMode, opt_timeout) {
});
};
+browserTest.connectMe2Me = function() {
garykac 2014/07/11 23:25:39 connectMe2Me doesn't feel like the right name for
+ var AppMode = remoting.AppMode;
+ browserTest.clickOnControl('this-host-connect');
+ return browserTest.onUIMode(AppMode.CLIENT_HOST_NEEDS_UPGRADE).then(
+ function() {
+ // On fulfilled.
+ browserTest.clickOnControl('host-needs-update-connect-button');
+ }, function() {
+ // On time out.
+ return Promise.resolve();
+ }).then(function() {
+ return browserTest.onUIMode(AppMode.CLIENT_PIN_PROMPT);
+ });
+}
+
browserTest.expectMe2MeError = function(errorTag) {
var AppMode = remoting.AppMode;
var Timeout = browserTest.Timeout;
« no previous file with comments | « no previous file | remoting/webapp/browser_test/cancel_pin_browser_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698