OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |