OLD | NEW |
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 Loading... |
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 |
OLD | NEW |