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

Unified Diff: chrome/browser/ui/webui/identity_internals/identity_internals_ui_browsertest.js

Issue 365513002: Port identity_internals to mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT for commit Created 6 years, 5 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: 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();
});
-

Powered by Google App Engine
This is Rietveld 408576698