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

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

Issue 688653002: Remove duplicate name attribute writing for AX tree on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add name attr to defalut filter Created 6 years, 1 month 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
« no previous file with comments | « content/browser/accessibility/accessibility_tree_formatter_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ++j; 84 ++j;
85 } 85 }
86 86
87 // Actual file has been fully checked. 87 // Actual file has been fully checked.
88 return diff_lines; 88 return diff_lines;
89 } 89 }
90 90
91 void AddDefaultFilters(std::vector<Filter>* filters) { 91 void AddDefaultFilters(std::vector<Filter>* filters) {
92 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW)); 92 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW));
93 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW)); 93 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW));
94 filters->push_back(Filter(base::ASCIIToUTF16("name*"), Filter::ALLOW));
94 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY)); 95 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY));
95 } 96 }
96 97
97 // Parse the test html file and parse special directives, usually 98 // Parse the test html file and parse special directives, usually
98 // beginning with an '@' and inside an HTML comment, that control how the 99 // beginning with an '@' and inside an HTML comment, that control how the
99 // test is run and how the results are interpreted. 100 // test is run and how the results are interpreted.
100 // 101 //
101 // When the accessibility tree is dumped as text, each attribute is 102 // When the accessibility tree is dumped as text, each attribute is
102 // run through filters before being appended to the string. An "allow" 103 // run through filters before being appended to the string. An "allow"
103 // filter specifies attribute strings that should be dumped, and a "deny" 104 // filter specifies attribute strings that should be dumped, and a "deny"
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 941
941 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { 942 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
942 RunTest(FILE_PATH_LITERAL("ul.html")); 943 RunTest(FILE_PATH_LITERAL("ul.html"));
943 } 944 }
944 945
945 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 946 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
946 RunTest(FILE_PATH_LITERAL("wbr.html")); 947 RunTest(FILE_PATH_LITERAL("wbr.html"));
947 } 948 }
948 949
949 } // namespace content 950 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/accessibility_tree_formatter_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698