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

Unified Diff: ui/aura/window_unittest.cc

Issue 9320018: Revert 120092 - Reland 120074 -- Disable animations during aura tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | « ui/aura/test/aura_test_base.cc ('k') | ui/gfx/compositor/layer_animation_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
===================================================================
--- ui/aura/window_unittest.cc (revision 120096)
+++ ui/aura/window_unittest.cc (working copy)
@@ -933,9 +933,6 @@
}
TEST_F(WindowTest, SetBoundsInternalShouldCheckTargetBounds) {
- // We cannot short-circuit animations in this test.
- ui::LayerAnimator::set_disable_animations_for_test(false);
-
scoped_ptr<Window> w1(
CreateTestWindowWithBounds(gfx::Rect(0, 0, 100, 100), NULL));
@@ -969,7 +966,7 @@
// Confirm that the target bounds are reached.
base::TimeTicks start_time =
- w1->layer()->GetAnimator()->last_step_time();
+ w1->layer()->GetAnimator()->get_last_step_time_for_test();
element->Step(start_time + base::TimeDelta::FromMilliseconds(1000));
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/gfx/compositor/layer_animation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698