| 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/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 formatter->FormatAccessibilityTree( | 113 formatter->FormatAccessibilityTree( |
| 114 web_contents->GetRootBrowserAccessibilityManager()->GetRoot(), | 114 web_contents->GetRootBrowserAccessibilityManager()->GetRoot(), |
| 115 &actual_contents_utf16); | 115 &actual_contents_utf16); |
| 116 std::string actual_contents = base::UTF16ToUTF8(actual_contents_utf16); | 116 std::string actual_contents = base::UTF16ToUTF8(actual_contents_utf16); |
| 117 return base::SplitString( | 117 return base::SplitString( |
| 118 actual_contents, "\n", | 118 actual_contents, "\n", |
| 119 base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); | 119 base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); |
| 120 } | 120 } |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 // Flaky on Windows: crbug.com/643954. | 123 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSColor) { |
| 124 #if defined(OS_WIN) | |
| 125 #define MAYBE_AccessibilityCSSColor DISABLED_AccessibilityCSSColor | |
| 126 #else | |
| 127 #define MAYBE_AccessibilityCSSColor AccessibilityCSSColor | |
| 128 #endif | |
| 129 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, MAYBE_AccessibilityCSSColor) { | |
| 130 RunCSSTest(FILE_PATH_LITERAL("color.html")); | 124 RunCSSTest(FILE_PATH_LITERAL("color.html")); |
| 131 } | 125 } |
| 132 | 126 |
| 133 // Flaky on Windows: crbug.com/643954. | 127 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSFontStyle) { |
| 134 #if defined(OS_WIN) | |
| 135 #define MAYBE_AccessibilityCSSFontStyle DISABLED_AccessibilityCSSFontStyle | |
| 136 #else | |
| 137 #define MAYBE_AccessibilityCSSFontStyle AccessibilityCSSFontStyle | |
| 138 #endif | |
| 139 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | |
| 140 MAYBE_AccessibilityCSSFontStyle) { | |
| 141 RunCSSTest(FILE_PATH_LITERAL("font-style.html")); | 128 RunCSSTest(FILE_PATH_LITERAL("font-style.html")); |
| 142 } | 129 } |
| 143 | 130 |
| 144 // Flaky on Windows: crbug.com/643954. | 131 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSLanguage) { |
| 145 #if defined(OS_WIN) | |
| 146 #define MAYBE_AccessibilityCSSLanguage DISABLED_AccessibilityCSSLanguage | |
| 147 #else | |
| 148 #define MAYBE_AccessibilityCSSLanguage AccessibilityCSSLanguage | |
| 149 #endif | |
| 150 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | |
| 151 MAYBE_AccessibilityCSSLanguage) { | |
| 152 RunCSSTest(FILE_PATH_LITERAL("language.html")); | 132 RunCSSTest(FILE_PATH_LITERAL("language.html")); |
| 153 } | 133 } |
| 154 | 134 |
| 155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) { | 135 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) { |
| 156 RunHtmlTest(FILE_PATH_LITERAL("a.html")); | 136 RunHtmlTest(FILE_PATH_LITERAL("a.html")); |
| 157 } | 137 } |
| 158 | 138 |
| 159 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) { | 139 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) { |
| 160 RunHtmlTest(FILE_PATH_LITERAL("abbr.html")); | 140 RunHtmlTest(FILE_PATH_LITERAL("abbr.html")); |
| 161 } | 141 } |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 1220 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 1241 AccessibilityOptionindatalist) { | 1221 AccessibilityOptionindatalist) { |
| 1242 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html")); | 1222 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html")); |
| 1243 } | 1223 } |
| 1244 | 1224 |
| 1245 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 1225 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 1246 DISABLED_AccessibilityOutput) { | 1226 DISABLED_AccessibilityOutput) { |
| 1247 RunHtmlTest(FILE_PATH_LITERAL("output.html")); | 1227 RunHtmlTest(FILE_PATH_LITERAL("output.html")); |
| 1248 } | 1228 } |
| 1249 | 1229 |
| 1250 // Flaky on Windows: crbug.com/643954. | 1230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { |
| 1251 #if defined(OS_WIN) | |
| 1252 #define MAYBE_AccessibilityP DISABLED_AccessibilityP | |
| 1253 #else | |
| 1254 #define MAYBE_AccessibilityP AccessibilityP | |
| 1255 #endif | |
| 1256 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, MAYBE_AccessibilityP) { | |
| 1257 RunHtmlTest(FILE_PATH_LITERAL("p.html")); | 1231 RunHtmlTest(FILE_PATH_LITERAL("p.html")); |
| 1258 } | 1232 } |
| 1259 | 1233 |
| 1260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) { | 1234 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) { |
| 1261 RunHtmlTest(FILE_PATH_LITERAL("param.html")); | 1235 RunHtmlTest(FILE_PATH_LITERAL("param.html")); |
| 1262 } | 1236 } |
| 1263 | 1237 |
| 1264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityPre) { | 1238 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityPre) { |
| 1265 RunHtmlTest(FILE_PATH_LITERAL("pre.html")); | 1239 RunHtmlTest(FILE_PATH_LITERAL("pre.html")); |
| 1266 } | 1240 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 // crbug.com/281952 | 1362 // crbug.com/281952 |
| 1389 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { | 1363 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { |
| 1390 RunHtmlTest(FILE_PATH_LITERAL("video.html")); | 1364 RunHtmlTest(FILE_PATH_LITERAL("video.html")); |
| 1391 } | 1365 } |
| 1392 | 1366 |
| 1393 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 1367 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
| 1394 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); | 1368 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); |
| 1395 } | 1369 } |
| 1396 | 1370 |
| 1397 } // namespace content | 1371 } // namespace content |
| OLD | NEW |