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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/controls/resize_area.h » ('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
deleted file mode 100644
index b9067b20c9b3716f250fddb83a35e4f876b8ffcd..0000000000000000000000000000000000000000
--- a/ui/views/controls/progress_bar_unittest.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/controls/progress_bar.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/accessibility/ax_view_state.h"
-
-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);
-
- ui::AXViewState state;
- bar.GetAccessibleState(&state);
- EXPECT_EQ(ui::AX_ROLE_PROGRESS_INDICATOR, state.role);
- EXPECT_EQ(base::string16(), state.name);
- EXPECT_TRUE(state.HasStateFlag(ui::AX_STATE_READ_ONLY));
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/progress_bar.cc ('k') | ui/views/controls/resize_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698