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

Unified Diff: content/browser/accessibility/accessibility_ipc_error_browsertest.cc

Issue 2440833002: Revert of Accessibility: Ignore all anonymous blocks (Closed)
Patch Set: Rebase after revert of another change touching cursors_test.js Created 4 years, 2 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: content/browser/accessibility/accessibility_ipc_error_browsertest.cc
diff --git a/content/browser/accessibility/accessibility_ipc_error_browsertest.cc b/content/browser/accessibility/accessibility_ipc_error_browsertest.cc
index 7d9f0042da928cbb06257b235f727303a19fb9fa..cba1d0c2c18082c5f00c38e686115e719f04c501 100644
--- a/content/browser/accessibility/accessibility_ipc_error_browsertest.cc
+++ b/content/browser/accessibility/accessibility_ipc_error_browsertest.cc
@@ -128,7 +128,11 @@ IN_PROC_BROWSER_TEST_F(AccessibilityIpcErrorBrowserTest,
const ui::AXNode* para = live_region->ChildAtIndex(0);
EXPECT_EQ(ui::AX_ROLE_PARAGRAPH, para->data().role);
- const ui::AXNode* button = root->ChildAtIndex(1);
+ const ui::AXNode* button_container = root->ChildAtIndex(1);
+ EXPECT_EQ(ui::AX_ROLE_GROUP, button_container->data().role);
+ ASSERT_EQ(1, button_container->child_count());
+
+ const ui::AXNode* button = button_container->ChildAtIndex(0);
EXPECT_EQ(ui::AX_ROLE_BUTTON, button->data().role);
}

Powered by Google App Engine
This is Rietveld 408576698