diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-31 04:44:27 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-31 04:44:27 +0000 |
commit | e375bcb87fe56bfcdfd462393883ac58d8c59776 (patch) | |
tree | f5784a911c034bdb5c08aa87e2461c01b22ec9e7 /cc | |
parent | 695a33e3625f1d3eeeac9d9d1b9df380b3a29fb0 (diff) | |
download | chromium_src-e375bcb87fe56bfcdfd462393883ac58d8c59776.zip chromium_src-e375bcb87fe56bfcdfd462393883ac58d8c59776.tar.gz chromium_src-e375bcb87fe56bfcdfd462393883ac58d8c59776.tar.bz2 |
cc: Add failure info to LTHAnimationTest...WithoutActiveTree
This has flaked with the active tree assert being wrong twice and it'd
be good to understand which commit this was happening on to better
diagnose this problem.
BUG=312952
Review URL: https://codereview.chromium.org/50713005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r-- | cc/trees/layer_tree_host_unittest_animation.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc index 70e2a9e..90fc936 100644 --- a/cc/trees/layer_tree_host_unittest_animation.cc +++ b/cc/trees/layer_tree_host_unittest_animation.cc @@ -375,14 +375,17 @@ class LayerTreeHostAnimationTestNoBackgroundTickingWithoutActiveTree // Verify that commits are actually alternating with empty / non-empty // trees. - switch (host_impl->active_tree()->source_frame_number()) { + int frame_number = host_impl->active_tree()->source_frame_number(); + switch (frame_number) { case 0: case 2: - EXPECT_TRUE(host_impl->active_tree()->root_layer()); + EXPECT_TRUE(host_impl->active_tree()->root_layer()) + << "frame: " << frame_number; break; case 1: case 3: - EXPECT_FALSE(host_impl->active_tree()->root_layer()); + EXPECT_FALSE(host_impl->active_tree()->root_layer()) + << "frame: " << frame_number; break; } |