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

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

Issue 1007543003: Implements It2MeBrowserTest CancelShare and VerifyAccessCodeNotReusable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/it2me_browser_test.js
diff --git a/remoting/webapp/browser_test/it2me_browser_test.js b/remoting/webapp/browser_test/it2me_browser_test.js
index 6a809d383906b83edaf255c0440874f238b9b7bb..a524ecd3e21b50a4a67bf7a9731acee5b601e83f 100644
--- a/remoting/webapp/browser_test/it2me_browser_test.js
+++ b/remoting/webapp/browser_test/it2me_browser_test.js
@@ -97,7 +97,19 @@ browserTest.GetAccessCode.prototype.run = function() {
Number.isInteger(numericAccessCode) && numericAccessCode > 0,
"The access code should be a positive integer.");
browserTest.pass();
- }, function(/** * */reason) {
- browserTest.fail(/** @type {Error} */(reason));
+ }).catch(function(/** Error */ reason) {
+ browserTest.fail(reason);
});
};
+
+/** @constructor */
+browserTest.CancelShare = function() {};
+
+browserTest.CancelShare.prototype.run = function() {
+ browserTest.clickOnControl('cancel-share-button');
+ browserTest.onUIMode(remoting.AppMode.HOST_SHARE_FINISHED).then(function() {
+ browserTest.pass();
+ }).catch(function(/** Error */ reason) {
+ browserTest.fail(reason);
+ });
+};

Powered by Google App Engine
This is Rietveld 408576698