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

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: Clean up TestNavigationObserver. 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 86%
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..a584930a9eb7c9377737e24b4424ea17a25e42fb 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',
@@ -226,35 +226,3 @@ TEST_F('IdentityInternalsMultipleTokensWebUITest', 'getAllTokens', function() {
expectEquals('scope_2_1', scopes[1]);
expectEquals('', scopes[2]);
});
-
-/**
- * Fixture for asynchronous testing of Identity Internals Web UI with multiple
- * tokens in Identity API token cache.
- * @extends {IdentityInternalsMultipleTokensWebUITest}
- * @constructor
- */
-function IdentityInternalsWebUITestAsync() {}
-
-IdentityInternalsWebUITestAsync.prototype = {
- __proto__: IdentityInternalsMultipleTokensWebUITest.prototype,
-
- /** @override */
- isAsync: true,
-};
-
-TEST_F('IdentityInternalsWebUITestAsync', 'revokeToken', function() {
- var tokenListBefore = this.getTokens();
- expectEquals(2, tokenListBefore.length);
- var tokenRevokeDone = identity_internals.tokenRevokeDone;
- identity_internals.tokenRevokeDone = this.continueTest(
Elliot Glaysher 2014/07/21 21:56:03 This test was removed because I don't believe we c
fgorski 2014/07/23 19:02:09 Is there a long term solution to a problem. I was
Elliot Glaysher 2014/07/23 20:20:04 There isn't a generic way to do this (and long ter
- 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]),
- this.getAccessToken(tokenListAfter[0]));
- }.bind(this));
- this.getRevokeButton(tokenListBefore[1]).click();
-});
-

Powered by Google App Engine
This is Rietveld 408576698