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

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

Issue 12378095: Disable some accessibility tests on Win64 build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/browser/renderer_host/render_view_host_impl.h" 9 #include "content/browser/renderer_host/render_view_host_impl.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
11 #include "content/public/browser/notification_types.h" 11 #include "content/public/browser/notification_types.h"
12 #include "content/public/browser/render_widget_host_view.h" 12 #include "content/public/browser/render_widget_host_view.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "content/public/test/test_utils.h" 14 #include "content/public/test/test_utils.h"
15 #include "content/test/content_browser_test.h" 15 #include "content/test/content_browser_test.h"
16 #include "content/test/content_browser_test_utils.h" 16 #include "content/test/content_browser_test_utils.h"
17 #include "content/shell/shell.h" 17 #include "content/shell/shell.h"
18 18
19 #if defined(OS_WIN) 19 #if defined(OS_WIN)
20 #include <atlbase.h> 20 #include <atlbase.h>
21 #include <atlcom.h> 21 #include <atlcom.h>
22 #include "base/win/scoped_com_initializer.h" 22 #include "base/win/scoped_com_initializer.h"
23 #include "ui/base/win/atl_module.h" 23 #include "ui/base/win/atl_module.h"
24 #endif 24 #endif
25 25
26 // TODO(dmazzoni): Disabled accessibility tests on Win64. crbug.com/179717
27 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64)
28 #define MAYBE_TableSpan DISABLED_TableSpan
29 #else
30 #define MAYBE_TableSpan TableSpan
31 #endif
32
26 namespace content { 33 namespace content {
27 34
28 class CrossPlatformAccessibilityBrowserTest : public ContentBrowserTest { 35 class CrossPlatformAccessibilityBrowserTest : public ContentBrowserTest {
29 public: 36 public:
30 CrossPlatformAccessibilityBrowserTest() {} 37 CrossPlatformAccessibilityBrowserTest() {}
31 38
32 // Tell the renderer to send an accessibility tree, then wait for the 39 // Tell the renderer to send an accessibility tree, then wait for the
33 // notification that it's been received. 40 // notification that it's been received.
34 const AccessibilityNodeData& GetAccessibilityNodeDataTree( 41 const AccessibilityNodeData& GetAccessibilityNodeDataTree(
35 AccessibilityMode accessibility_mode = AccessibilityModeComplete) { 42 AccessibilityMode accessibility_mode = AccessibilityModeComplete) {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 "<em><code ><h4 ></em>"; 376 "<em><code ><h4 ></em>";
370 GURL url(url_str); 377 GURL url(url_str);
371 NavigateToURL(shell(), url); 378 NavigateToURL(shell(), url);
372 379
373 const AccessibilityNodeData& tree = GetAccessibilityNodeDataTree(); 380 const AccessibilityNodeData& tree = GetAccessibilityNodeDataTree();
374 base::hash_set<int> ids; 381 base::hash_set<int> ids;
375 RecursiveAssertUniqueIds(tree, &ids); 382 RecursiveAssertUniqueIds(tree, &ids);
376 } 383 }
377 384
378 IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest, 385 IN_PROC_BROWSER_TEST_F(CrossPlatformAccessibilityBrowserTest,
379 TableSpan) { 386 MAYBE_TableSpan) {
380 // +---+---+---+ 387 // +---+---+---+
381 // | 1 | 2 | 388 // | 1 | 2 |
382 // +---+---+---+ 389 // +---+---+---+
383 // | 3 | 4 | 390 // | 3 | 4 |
384 // +---+---+---+ 391 // +---+---+---+
385 392
386 const char url_str[] = 393 const char url_str[] =
387 "data:text/html," 394 "data:text/html,"
388 "<!doctype html>" 395 "<!doctype html>"
389 "<table border=1>" 396 "<table border=1>"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 const AccessibilityNodeData& tree = GetAccessibilityNodeDataTree(); 465 const AccessibilityNodeData& tree = GetAccessibilityNodeDataTree();
459 466
460 ASSERT_EQ(1U, tree.children.size()); 467 ASSERT_EQ(1U, tree.children.size());
461 const AccessibilityNodeData& textbox = tree.children[0]; 468 const AccessibilityNodeData& textbox = tree.children[0];
462 469
463 EXPECT_EQ( 470 EXPECT_EQ(
464 true, GetBoolAttr(textbox, AccessibilityNodeData::ATTR_CAN_SET_VALUE)); 471 true, GetBoolAttr(textbox, AccessibilityNodeData::ATTR_CAN_SET_VALUE));
465 } 472 }
466 473
467 } // namespace content 474 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698