| Index: remoting/webapp/browser_test/bump_scroll_browser_test.js
|
| diff --git a/remoting/webapp/browser_test/bump_scroll_browser_test.js b/remoting/webapp/browser_test/bump_scroll_browser_test.js
|
| index a90d5b17711a488258a58321df9cbf667d979c04..38eea467206034bc741ce7c78cff58ab10af5a71 100644
|
| --- a/remoting/webapp/browser_test/bump_scroll_browser_test.js
|
| +++ b/remoting/webapp/browser_test/bump_scroll_browser_test.js
|
| @@ -84,7 +84,16 @@ browserTest.Bump_Scroll.prototype.run = function(data) {
|
| if (!base.isAppsV2()) {
|
| browserTest.fail(
|
| 'Bump-scroll requires full-screen, which can only be activated ' +
|
| - 'programmatically in apps v2.')
|
| + 'programmatically in apps v2.');
|
| + }
|
| +
|
| + var mockConnection = new remoting.MockConnection();
|
| + mockConnection.plugin().mock$useDefaultBehavior(
|
| + remoting.MockClientPlugin.AuthMethod.PIN);
|
| +
|
| + function cleanup() {
|
| + mockConnection.restore();
|
| + browserTest.disconnect();
|
| }
|
|
|
| this.testVerifyScroll().then(function() {
|
| @@ -109,11 +118,11 @@ browserTest.Bump_Scroll.prototype.run = function(data) {
|
| this.scrollDirection.bind(this, 0.5, 0.0) // Top edge
|
| ).then(
|
| function(value) {
|
| - browserTest.disconnect();
|
| + cleanup();
|
| return browserTest.pass(value);
|
| },
|
| function(error) {
|
| - browserTest.disconnect();
|
| + cleanup();
|
| return browserTest.fail(error);
|
| }
|
| );
|
|
|