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

Unified Diff: ui/views/controls/progress_bar_unittest.cc

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: attempt to unbreak mac and unit test Created 4 years, 3 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
« no previous file with comments | « ui/views/controls/progress_bar.cc ('k') | ui/views/examples/progress_bar_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/progress_bar_unittest.cc
diff --git a/ui/views/controls/progress_bar_unittest.cc b/ui/views/controls/progress_bar_unittest.cc
index b9067b20c9b3716f250fddb83a35e4f876b8ffcd..5b416bf713512f7ed9775b69329abc93d14fad8d 100644
--- a/ui/views/controls/progress_bar_unittest.cc
+++ b/ui/views/controls/progress_bar_unittest.cc
@@ -10,20 +10,9 @@
namespace views {
-TEST(ProgressBarTest, TooltipTextProperty) {
- ProgressBar bar;
- base::string16 tooltip = base::ASCIIToUTF16("Some text");
- EXPECT_FALSE(bar.GetTooltipText(gfx::Point(), &tooltip));
- EXPECT_EQ(base::string16(), tooltip);
- base::string16 tooltip_text = base::ASCIIToUTF16("My progress");
- bar.SetTooltipText(tooltip_text);
- EXPECT_TRUE(bar.GetTooltipText(gfx::Point(), &tooltip));
- EXPECT_EQ(tooltip_text, tooltip);
-}
-
TEST(ProgressBarTest, Accessibility) {
ProgressBar bar;
- bar.SetValue(62);
+ bar.SetValue(0.62);
ui::AXViewState state;
bar.GetAccessibleState(&state);
« no previous file with comments | « ui/views/controls/progress_bar.cc ('k') | ui/views/examples/progress_bar_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698