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

Unified Diff: chrome/browser/accessibility/browser_accessibility_manager_unittest.cc

Issue 7648055: Add DCHECK to BrowserAccessibilityManager::Remove to detect undefined behavoir that may lead to a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/browser_accessibility_manager_unittest.cc
===================================================================
--- chrome/browser/accessibility/browser_accessibility_manager_unittest.cc (revision 96997)
+++ chrome/browser/accessibility/browser_accessibility_manager_unittest.cc (working copy)
@@ -598,34 +598,6 @@
EXPECT_EQ(WebAccessibility::ROLE_TEXT_FIELD, acc1_2->role());
EXPECT_EQ(1001, acc1_2->renderer_id());
- // Tree with a child button.
- WebAccessibility tree2_1;
- tree2_1.id = 1000;
- tree2_1.role = WebAccessibility::ROLE_WEB_AREA;
-
- WebAccessibility tree2_2;
- tree2_2.id = 1001;
- tree2_2.role = WebAccessibility::ROLE_BUTTON;
-
- tree2_1.children.push_back(tree2_2);
-
- msg->acc_obj = tree2_1;
-
- // Fire another load complete.
- manager->OnAccessibilityNotifications(params);
-
- BrowserAccessibility* acc2_2 = manager->GetFromRendererID(1001);
-
- // Verify the root has not changed.
- EXPECT_EQ(root, manager->GetRoot());
-
- // And the proper child remains.
- EXPECT_EQ(WebAccessibility::ROLE_BUTTON, acc2_2->role());
- EXPECT_EQ(1001, acc2_2->renderer_id());
-
- // Verify we don't reuse objects that have changed roles.
David Tseng 2011/08/16 23:32:52 Shouldn't this be the only assertion removed from
Chris Guillory 2011/08/17 00:00:43 Done. I've also updated tree2 to not attempt to ch
- EXPECT_NE(acc1_2, acc2_2);
-
// Ensure we properly cleaned up.
manager.reset();
ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_);
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698