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

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_browsertest.cc

Issue 1654193002: Include a role description string in node info for Android accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update all Android test expectations Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // 3. Browse to the page and serialize the platform specific tree into a human 49 // 3. Browse to the page and serialize the platform specific tree into a human
50 // readable string. 50 // readable string.
51 // 4. Perform a comparison between actual and expected and fail if they do not 51 // 4. Perform a comparison between actual and expected and fail if they do not
52 // exactly match. 52 // exactly match.
53 class DumpAccessibilityTreeTest : public DumpAccessibilityTestBase { 53 class DumpAccessibilityTreeTest : public DumpAccessibilityTestBase {
54 public: 54 public:
55 void AddDefaultFilters(std::vector<Filter>* filters) override { 55 void AddDefaultFilters(std::vector<Filter>* filters) override {
56 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW)); 56 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW));
57 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW)); 57 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW));
58 filters->push_back(Filter(base::ASCIIToUTF16("name=*"), Filter::ALLOW)); 58 filters->push_back(Filter(base::ASCIIToUTF16("name=*"), Filter::ALLOW));
59 filters->push_back(Filter(base::ASCIIToUTF16("roleDescription=*"),
60 Filter::ALLOW));
59 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY)); 61 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY));
60 } 62 }
61 63
62 void SetUpCommandLine(base::CommandLine* command_line) override { 64 void SetUpCommandLine(base::CommandLine* command_line) override {
63 DumpAccessibilityTestBase::SetUpCommandLine(command_line); 65 DumpAccessibilityTestBase::SetUpCommandLine(command_line);
64 // Enable <dialog>, which is used in some tests. 66 // Enable <dialog>, which is used in some tests.
65 base::CommandLine::ForCurrentProcess()->AppendSwitch( 67 base::CommandLine::ForCurrentProcess()->AppendSwitch(
66 switches::kEnableExperimentalWebPlatformFeatures); 68 switches::kEnableExperimentalWebPlatformFeatures);
67 } 69 }
68 70
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 // crbug.com/281952 1265 // crbug.com/281952
1264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { 1266 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) {
1265 RunHtmlTest(FILE_PATH_LITERAL("video.html")); 1267 RunHtmlTest(FILE_PATH_LITERAL("video.html"));
1266 } 1268 }
1267 1269
1268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 1270 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
1269 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); 1271 RunHtmlTest(FILE_PATH_LITERAL("wbr.html"));
1270 } 1272 }
1271 1273
1272 } // namespace content 1274 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698