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; |