| 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);
|
| + });
|
| +};
|
|
|