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

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: 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
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() {
+ 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');
Jamie 2014/07/11 19:33:22 Rather than silently dismissing the dialog if it a
kelvinp 2014/07/11 21:11:22 Good question. Browser tests are configured in the
Jamie 2014/07/14 18:24:04 That was pretty much what I had in mind. I think y
+ }, 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;

Powered by Google App Engine
This is Rietveld 408576698