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

Side by Side Diff: content/browser/accessibility/cross_platform_accessibility_browsertest.cc

Issue 2799413002: Views a11y: Add AXNodeData.actions bitfield to indicate supported actions by UI. (Closed)
Patch Set: Fix tests broken from rebase. Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 "<!doctype html>" 486 "<!doctype html>"
487 "<div role='textbox' tabindex=0>" 487 "<div role='textbox' tabindex=0>"
488 " Some text" 488 " Some text"
489 "</div>"; 489 "</div>";
490 GURL url(url_str); 490 GURL url(url_str);
491 NavigateToURL(shell(), url); 491 NavigateToURL(shell(), url);
492 const ui::AXTree& tree = GetAXTree(); 492 const ui::AXTree& tree = GetAXTree();
493 const ui::AXNode* root = tree.root(); 493 const ui::AXNode* root = tree.root();
494 ASSERT_EQ(1, root->child_count()); 494 ASSERT_EQ(1, root->child_count());
495 const ui::AXNode* textbox = root->ChildAtIndex(0); 495 const ui::AXNode* textbox = root->ChildAtIndex(0);
496 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); 496 EXPECT_TRUE(textbox->data().HasAction(ui::AX_ACTION_SET_VALUE));
497 } 497 }
498 498
499 } // namespace content 499 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698