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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js

Issue 520623002: Remove Files.app's own profile badge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 4 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/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js
index 32f032e6ff96f6b18efe06ead543c1dc94aaca92..65423d511703b547b20a3e623790b15c306986be 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/multi_profile.js
@@ -49,65 +49,6 @@ function waitForVisitDesktopMenu(windowId, profileId, waitMode) {
});
}
-testcase.multiProfileBadge = function() {
- var appId;
- StepsRunner.run([
- function() {
- setupAndWaitUntilReady(null, RootPath.DOWNLOADS, this.next);
- },
- // Add all users.
- function(inAppId) {
- appId = inAppId;
- chrome.test.sendMessage(JSON.stringify({name: 'addAllUsers'}),
- this.next);
- },
- // Get the badge element.
- function(json) {
- chrome.test.assertTrue(JSON.parse(json));
- waitForElement(appId, '#profile-badge').then(this.next);
- },
- // Verify no badge image is shown yet. Move to other deskop.
- function(element) {
- chrome.test.assertTrue(element.hidden, 'Badge hidden initially');
- callRemoteTestUtil('visitDesktop',
- appId,
- ['bob@invalid.domain'],
- this.next);
- },
- // Get the badge element again.
- function(result) {
- chrome.test.assertTrue(result);
- waitForElement(appId, '#profile-badge:not([hidden])').then(this.next);
- },
- // Verify an image source is filled. Go back to the original desktop
- function(element) {
- callRemoteTestUtil('queryAllElements',
- appId,
- ['#profile-badge',
- null,
- ['background']]).then(this.next);
- },
- function(elements) {
- chrome.test.assertTrue(
- elements[0].styles.background.indexOf('data:image') !== -1,
- 'Badge shown after moving desktop');
- callRemoteTestUtil('visitDesktop',
- appId,
- ['alice@invalid.domain'],
- this.next);
- },
- // Wait for #profile-badge element to disappear.
- function(result) {
- chrome.test.assertTrue(result);
- waitForElementLost(appId, '#profile-badge:not([hidden])').then(this.next);
- },
- // The image is gone.
- function(result) {
- checkIfNoErrorsOccured(this.next);
- }
- ]);
-};
-
testcase.multiProfileVisitDesktopMenu = function() {
var appId;
StepsRunner.run([
« no previous file with comments | « chrome/common/extensions/api/file_browser_private.idl ('k') | ui/file_manager/file_manager/foreground/css/file_manager.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698