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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc

Issue 2715543003: Views a11y: Implement AXPlatformNode::FromNativeViewAccessible on all platforms. (Closed)
Patch Set: Rebase Created 3 years, 10 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: ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc b/ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc
index 3a5287614e9d52581935917881aefacfd7ccc0a3..956a4c32171252bac13ef585c7671ee87500b278 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc
@@ -159,7 +159,7 @@ TEST_F(TabbedPaneTest, SelectTabWithAccessibleAction) {
// Check the a11y information for each tab.
for (int i = 0; i < kNumTabs; ++i) {
ui::AXNodeData data =
- NativeViewAccessibility::Create(GetTabAt(i))->GetData();
+ NativeViewAccessibility::CreateForView(GetTabAt(i))->GetData();
SCOPED_TRACE(testing::Message() << "Tab at index: " << i);
EXPECT_EQ(ui::AX_ROLE_TAB, data.role);
EXPECT_EQ(DefaultTabTitle(), data.GetString16Attribute(ui::AX_ATTR_NAME));
@@ -171,13 +171,13 @@ TEST_F(TabbedPaneTest, SelectTabWithAccessibleAction) {
action.action = ui::AX_ACTION_SET_SELECTION;
// Select the first tab.
- NativeViewAccessibility::Create(GetTabAt(0))
+ NativeViewAccessibility::CreateForView(GetTabAt(0))
->AccessibilityPerformAction(action);
EXPECT_EQ(0, tabbed_pane_->GetSelectedTabIndex());
// Select the second tab.
std::unique_ptr<NativeViewAccessibility> nva =
- NativeViewAccessibility::Create(GetTabAt(1));
+ NativeViewAccessibility::CreateForView(GetTabAt(1));
nva->AccessibilityPerformAction(action);
EXPECT_EQ(1, tabbed_pane_->GetSelectedTabIndex());
// Select the second tab again.

Powered by Google App Engine
This is Rietveld 408576698