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

Unified Diff: content/browser/accessibility/renderer_accessibility_browsertest.cc

Issue 8869006: Remove special casing for firing load completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Poll while busy a11y tree returned. Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/renderer_accessibility_browsertest.cc
diff --git a/content/browser/accessibility/renderer_accessibility_browsertest.cc b/content/browser/accessibility/renderer_accessibility_browsertest.cc
index f74b01730ccb0b33fcd7d9d3366b3f385c2d9004..93676087b0016cdc3c93ad546461a92af1d0cb72 100644
--- a/content/browser/accessibility/renderer_accessibility_browsertest.cc
+++ b/content/browser/accessibility/renderer_accessibility_browsertest.cc
@@ -42,7 +42,10 @@ class RendererAccessibilityBrowserTest : public InProcessBrowserTest {
RenderViewHost* view_host = static_cast<RenderViewHost*>(host);
view_host->set_save_accessibility_tree_for_testing(true);
view_host->EnableRendererAccessibility();
- tree_updated_observer.Wait();
+ while (view_host->accessibility_tree_for_testing().state &
+ (1 << WebAccessibility::STATE_BUSY)) {
+ tree_updated_observer.Wait();
+ }
return view_host->accessibility_tree_for_testing();
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698