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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_item_cell_unittest.mm

Issue 7272024: Fix regression: Download status doesn't appear anymore in the download-shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_cell.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_nsobject.h"
6 #import "chrome/browser/ui/cocoa/download/download_item_cell.h"
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "testing/platform_test.h"
10
11 TEST(DownloadItemCellTest, ToggleStatusText) {
12 scoped_nsobject<DownloadItemCell> cell;
13 cell.reset([[DownloadItemCell alloc] initTextCell:@""]);
14 EXPECT_FALSE([cell isStatusTextVisible]);
15 EXPECT_FLOAT_EQ(0.0, [cell statusTextAlpha]);
16
17 [cell showSecondaryTitle];
18 [cell skipVisibilityAnimation];
19 EXPECT_TRUE([cell isStatusTextVisible]);
20 EXPECT_FLOAT_EQ(1.0, [cell statusTextAlpha]);
21
22 [cell hideSecondaryTitle];
23 [cell skipVisibilityAnimation];
24 EXPECT_FALSE([cell isStatusTextVisible]);
25 EXPECT_FLOAT_EQ(0.0, [cell statusTextAlpha]);
26 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_cell.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698