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

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

Issue 2309273002: Disable some DumpAccessibilityTreeTest.Accessibility test on Windows (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | 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/path_service.h" 10 #include "base/path_service.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSColor) { 123 // Flaky on Windows: crbug.com/643954.
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) {
124 RunCSSTest(FILE_PATH_LITERAL("color.html")); 130 RunCSSTest(FILE_PATH_LITERAL("color.html"));
125 } 131 }
126 132
127 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSFontStyle) { 133 // Flaky on Windows: crbug.com/643954.
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) {
128 RunCSSTest(FILE_PATH_LITERAL("font-style.html")); 141 RunCSSTest(FILE_PATH_LITERAL("font-style.html"));
129 } 142 }
130 143
131 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCSSLanguage) { 144 // Flaky on Windows: crbug.com/643954.
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) {
132 RunCSSTest(FILE_PATH_LITERAL("language.html")); 152 RunCSSTest(FILE_PATH_LITERAL("language.html"));
133 } 153 }
134 154
135 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) { 155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) {
136 RunHtmlTest(FILE_PATH_LITERAL("a.html")); 156 RunHtmlTest(FILE_PATH_LITERAL("a.html"));
137 } 157 }
138 158
139 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) { 159 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) {
140 RunHtmlTest(FILE_PATH_LITERAL("abbr.html")); 160 RunHtmlTest(FILE_PATH_LITERAL("abbr.html"));
141 } 161 }
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 1240 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1221 AccessibilityOptionindatalist) { 1241 AccessibilityOptionindatalist) {
1222 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html")); 1242 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html"));
1223 } 1243 }
1224 1244
1225 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 1245 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
1226 DISABLED_AccessibilityOutput) { 1246 DISABLED_AccessibilityOutput) {
1227 RunHtmlTest(FILE_PATH_LITERAL("output.html")); 1247 RunHtmlTest(FILE_PATH_LITERAL("output.html"));
1228 } 1248 }
1229 1249
1230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { 1250 // Flaky on Windows: crbug.com/643954.
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) {
1231 RunHtmlTest(FILE_PATH_LITERAL("p.html")); 1257 RunHtmlTest(FILE_PATH_LITERAL("p.html"));
1232 } 1258 }
1233 1259
1234 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) { 1260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) {
1235 RunHtmlTest(FILE_PATH_LITERAL("param.html")); 1261 RunHtmlTest(FILE_PATH_LITERAL("param.html"));
1236 } 1262 }
1237 1263
1238 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityPre) { 1264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityPre) {
1239 RunHtmlTest(FILE_PATH_LITERAL("pre.html")); 1265 RunHtmlTest(FILE_PATH_LITERAL("pre.html"));
1240 } 1266 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 // crbug.com/281952 1388 // crbug.com/281952
1363 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { 1389 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) {
1364 RunHtmlTest(FILE_PATH_LITERAL("video.html")); 1390 RunHtmlTest(FILE_PATH_LITERAL("video.html"));
1365 } 1391 }
1366 1392
1367 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 1393 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
1368 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); 1394 RunHtmlTest(FILE_PATH_LITERAL("wbr.html"));
1369 } 1395 }
1370 1396
1371 } // namespace content 1397 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698