| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 "</script>"; | 322 "</script>"; |
| 323 GURL url(url_str); | 323 GURL url(url_str); |
| 324 NavigateToURL(shell(), url); | 324 NavigateToURL(shell(), url); |
| 325 | 325 |
| 326 const ui::AXTree& tree = GetAXTree(); | 326 const ui::AXTree& tree = GetAXTree(); |
| 327 const ui::AXNode* root = tree.GetRoot(); | 327 const ui::AXNode* root = tree.GetRoot(); |
| 328 base::hash_set<int> ids; | 328 base::hash_set<int> ids; |
| 329 RecursiveAssertUniqueIds(root, &ids); | 329 RecursiveAssertUniqueIds(root, &ids); |
| 330 } | 330 } |
| 331 | 331 |
| 332 // TODO(dmazzoni): Needs to be rebaselined. http://crbug.com/347464 |
| 332 IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest, | 333 IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest, |
| 333 IframeAccessibility) { | 334 DISABLED_IframeAccessibility) { |
| 334 // Create a data url and load it. | 335 // Create a data url and load it. |
| 335 const char url_str[] = | 336 const char url_str[] = |
| 336 "data:text/html," | 337 "data:text/html," |
| 337 "<!doctype html><html><body>" | 338 "<!doctype html><html><body>" |
| 338 "<button>Button 1</button>" | 339 "<button>Button 1</button>" |
| 339 "<iframe src='data:text/html," | 340 "<iframe src='data:text/html," |
| 340 "<!doctype html><html><body><button>Button 2</button></body></html>" | 341 "<!doctype html><html><body><button>Button 2</button></body></html>" |
| 341 "'></iframe>" | 342 "'></iframe>" |
| 342 "<button>Button 3</button>" | 343 "<button>Button 3</button>" |
| 343 "</body></html>"; | 344 "</body></html>"; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 GURL url(url_str); | 488 GURL url(url_str); |
| 488 NavigateToURL(shell(), url); | 489 NavigateToURL(shell(), url); |
| 489 const ui::AXTree& tree = GetAXTree(); | 490 const ui::AXTree& tree = GetAXTree(); |
| 490 const ui::AXNode* root = tree.GetRoot(); | 491 const ui::AXNode* root = tree.GetRoot(); |
| 491 ASSERT_EQ(1, root->child_count()); | 492 ASSERT_EQ(1, root->child_count()); |
| 492 const ui::AXNode* textbox = root->ChildAtIndex(0); | 493 const ui::AXNode* textbox = root->ChildAtIndex(0); |
| 493 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); | 494 EXPECT_EQ(true, GetBoolAttr(textbox, ui::AX_ATTR_CAN_SET_VALUE)); |
| 494 } | 495 } |
| 495 | 496 |
| 496 } // namespace content | 497 } // namespace content |
| OLD | NEW |