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

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

Issue 1413423003: Move some AX attrs from AXNodeData to AXTreeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/cross_platform_accessibility_browsertest.cc
diff --git a/content/browser/accessibility/cross_platform_accessibility_browsertest.cc b/content/browser/accessibility/cross_platform_accessibility_browsertest.cc
index 215a94e5f97e2692ac02b3819388974c035e704a..c179b170938a63ad0ffa907a4c929f7201adf8e4 100644
--- a/content/browser/accessibility/cross_platform_accessibility_browsertest.cc
+++ b/content/browser/accessibility/cross_platform_accessibility_browsertest.cc
@@ -144,17 +144,13 @@ IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest,
const ui::AXTree& tree = GetAXTree();
const ui::AXNode* root = tree.root();
+ // Check properties of thet tree.
+ EXPECT_STREQ(url_str, tree.data().url.c_str());
+ EXPECT_STREQ("Accessibility Test", tree.data().title.c_str());
+ EXPECT_STREQ("html", tree.data().doctype.c_str());
+ EXPECT_STREQ("text/html", tree.data().mimetype.c_str());
+
// Check properties of the root element of the tree.
- EXPECT_STREQ(url_str,
- GetAttr(root, ui::AX_ATTR_DOC_URL).c_str());
- EXPECT_STREQ(
- "Accessibility Test",
- GetAttr(root, ui::AX_ATTR_DOC_TITLE).c_str());
- EXPECT_STREQ(
- "html", GetAttr(root, ui::AX_ATTR_DOC_DOCTYPE).c_str());
- EXPECT_STREQ(
- "text/html",
- GetAttr(root, ui::AX_ATTR_DOC_MIMETYPE).c_str());
EXPECT_STREQ(
"Accessibility Test",
GetAttr(root, ui::AX_ATTR_NAME).c_str());

Powered by Google App Engine
This is Rietveld 408576698