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

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

Issue 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final suggestions Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/frame_host/render_frame_host_impl.h" 9 #include "content/browser/frame_host/render_frame_host_impl.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 const ui::AXNode* para = live_region->ChildAtIndex(0); 126 const ui::AXNode* para = live_region->ChildAtIndex(0);
127 EXPECT_EQ(ui::AX_ROLE_PARAGRAPH, para->data().role); 127 EXPECT_EQ(ui::AX_ROLE_PARAGRAPH, para->data().role);
128 128
129 const ui::AXNode* button_container = root->ChildAtIndex(1); 129 const ui::AXNode* button_container = root->ChildAtIndex(1);
130 EXPECT_EQ(ui::AX_ROLE_GROUP, button_container->data().role); 130 EXPECT_EQ(ui::AX_ROLE_GROUP, button_container->data().role);
131 ASSERT_EQ(1, button_container->child_count()); 131 ASSERT_EQ(1, button_container->child_count());
132 132
133 const ui::AXNode* button = button_container->ChildAtIndex(0); 133 const ui::AXNode* button = button_container->ChildAtIndex(0);
134 EXPECT_EQ(ui::AX_ROLE_BUTTON, button->data().role); 134 EXPECT_EQ(ui::AX_ROLE_BUTTON, button->data().role);
135 EXPECT_TRUE(button->data().state >> ui::AX_STATE_FOCUSED & 1);
136 } 135 }
137 136
138 #if defined(OS_ANDROID) 137 #if defined(OS_ANDROID)
139 // http://crbug.com/542704 138 // http://crbug.com/542704
140 #define MAYBE_MultipleBadAccessibilityIPCsKillsRenderer DISABLED_MultipleBadAcce ssibilityIPCsKillsRenderer 139 #define MAYBE_MultipleBadAccessibilityIPCsKillsRenderer DISABLED_MultipleBadAcce ssibilityIPCsKillsRenderer
141 #else 140 #else
142 #define MAYBE_MultipleBadAccessibilityIPCsKillsRenderer MultipleBadAccessibility IPCsKillsRenderer 141 #define MAYBE_MultipleBadAccessibilityIPCsKillsRenderer MultipleBadAccessibility IPCsKillsRenderer
143 #endif 142 #endif
144 IN_PROC_BROWSER_TEST_F(AccessibilityIpcErrorBrowserTest, 143 IN_PROC_BROWSER_TEST_F(AccessibilityIpcErrorBrowserTest,
145 MAYBE_MultipleBadAccessibilityIPCsKillsRenderer) { 144 MAYBE_MultipleBadAccessibilityIPCsKillsRenderer) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Wait for the renderer to be killed. 191 // Wait for the renderer to be killed.
193 if (frame->IsRenderFrameLive()) { 192 if (frame->IsRenderFrameLive()) {
194 RenderProcessHostWatcher render_process_watcher( 193 RenderProcessHostWatcher render_process_watcher(
195 frame->GetProcess(), RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT); 194 frame->GetProcess(), RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT);
196 render_process_watcher.Wait(); 195 render_process_watcher.Wait();
197 } 196 }
198 ASSERT_FALSE(frame->IsRenderFrameLive()); 197 ASSERT_FALSE(frame->IsRenderFrameLive());
199 } 198 }
200 199
201 } // namespace content 200 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/web_test_proxy.cc ('k') | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698