| Index: chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.js
|
| diff --git a/chrome/browser/ui/webui/identity_internals_ui_browsertest.js b/chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.js
|
| similarity index 96%
|
| rename from chrome/browser/ui/webui/identity_internals_ui_browsertest.js
|
| rename to chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.js
|
| index f71a7608c9de51272f20c3f294060769cc588de4..4fba259b273fdd4ff05a211f01f3697c740dfd7b 100644
|
| --- a/chrome/browser/ui/webui/identity_internals_ui_browsertest.js
|
| +++ b/chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.js
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -GEN('#include "chrome/browser/ui/webui/identity_internals_ui_browsertest.h"');
|
| +GEN('#include "chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.h"');
|
|
|
| /**
|
| * Test C++ fixture for downloads WebUI testing.
|
| @@ -24,7 +24,7 @@ BaseIdentityInternalsWebUITest.prototype = {
|
| /**
|
| * Browse to the downloads page & call our preLoad().
|
| */
|
| - browsePreload: 'chrome://identity-internals',
|
| + browsePreloadAndWaitForMain: 'chrome://identity-internals',
|
|
|
| /** @override */
|
| typedefCppFixture: 'IdentityInternalsUIBrowserTest',
|
| @@ -245,11 +245,8 @@ IdentityInternalsWebUITestAsync.prototype = {
|
| TEST_F('IdentityInternalsWebUITestAsync', 'revokeToken', function() {
|
| var tokenListBefore = this.getTokens();
|
| expectEquals(2, tokenListBefore.length);
|
| - var tokenRevokeDone = identity_internals.tokenRevokeDone;
|
| - identity_internals.tokenRevokeDone = this.continueTest(
|
| + window.revokeTokenTest = this.continueTest(
|
| WhenTestDone.ALWAYS, function(accessTokens) {
|
| - tokenRevokeDone.call(identity_internals, accessTokens);
|
| - identity_internals.tokenRevokeDone = tokenRevokeDone;
|
| var tokenListAfter = this.getTokens();
|
| expectEquals(1, tokenListAfter.length);
|
| expectEquals(this.getAccessToken(tokenListBefore[0]),
|
| @@ -257,4 +254,3 @@ TEST_F('IdentityInternalsWebUITestAsync', 'revokeToken', function() {
|
| }.bind(this));
|
| this.getRevokeButton(tokenListBefore[1]).click();
|
| });
|
| -
|
|
|