Commit 02c51f44 authored by Aran Gilman's avatar Aran Gilman Committed by Commit Bot

Re-enable WebpageAccessibility test and update role expectation.

The test was originally disabled due to https://crbug.com/101984. The
flakiness occurred for Vista builds only, and the bug has not had a
significant update since 2012.

Bug: 101984
Change-Id: Ifadf55ae2d867e816db2795c9a7eaed0377cc276
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1497128
Auto-Submit: Aran Gilman <gilmanmh@google.com>
Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Commit-Queue: Aran Gilman <gilmanmh@google.com>
Cr-Commit-Position: refs/heads/master@{#638651}
parent 2c77ed71
...@@ -132,9 +132,8 @@ bool CrossPlatformAccessibilityBrowserTest::GetBoolAttr( ...@@ -132,9 +132,8 @@ bool CrossPlatformAccessibilityBrowserTest::GetBoolAttr(
return false; return false;
} }
// Marked flaky per http://crbug.com/101984
IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest, IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest,
DISABLED_WebpageAccessibility) { WebpageAccessibility) {
// Create a data url and load it. // Create a data url and load it.
const char url_str[] = const char url_str[] =
"data:text/html," "data:text/html,"
...@@ -161,7 +160,7 @@ IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest, ...@@ -161,7 +160,7 @@ IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest,
// Check properties of the BODY element. // Check properties of the BODY element.
ASSERT_EQ(1, root->child_count()); ASSERT_EQ(1, root->child_count());
const ui::AXNode* body = root->ChildAtIndex(0); const ui::AXNode* body = root->ChildAtIndex(0);
EXPECT_EQ(ax::mojom::Role::kGroup, body->data().role); EXPECT_EQ(ax::mojom::Role::kGenericContainer, body->data().role);
EXPECT_STREQ("body", EXPECT_STREQ("body",
GetAttr(body, ax::mojom::StringAttribute::kHtmlTag).c_str()); GetAttr(body, ax::mojom::StringAttribute::kHtmlTag).c_str());
EXPECT_STREQ("block", EXPECT_STREQ("block",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment