[mutter/wip/carlosg/unassorted-perf-fixes: 5/6] clutter/tests: Update expectations in actor-anchors test



commit 697aeae2ad8fda13627ca93fecac37c5a2a38c57
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 18 13:16:17 2018 +0100

    clutter/tests: Update expectations in actor-anchors test
    
    The test does a clutter_actor_set_scale_full() call that only updates
    the scale center (i.e. no changes to scale-x/y), but expects to receive
    notifications of actor scale changes.
    
    Since "Revert "Revert "ClutterActor: Optimize away idempotent
    scale/position updates"" these are optimized away, so just drop the
    assumption.

 clutter/tests/conform/actor-anchors.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/tests/conform/actor-anchors.c b/clutter/tests/conform/actor-anchors.c
index ee3b6a5e6..55395880b 100644
--- a/clutter/tests/conform/actor-anchors.c
+++ b/clutter/tests/conform/actor-anchors.c
@@ -407,8 +407,7 @@ test_scale_center (TestState *state)
   g_assert (scale_x == 4.0);
   g_assert (scale_y == 2.0);
   g_assert (gravity == CLUTTER_GRAVITY_NONE);
-  assert_notifications (NOTIFY_SCALE_X | NOTIFY_SCALE_Y
-                        | NOTIFY_SCALE_CENTER_X | NOTIFY_SCALE_CENTER_Y
+  assert_notifications (NOTIFY_SCALE_CENTER_X | NOTIFY_SCALE_CENTER_Y
                         | NOTIFY_SCALE_GRAVITY);
   assert_coords (state, 100 + 10 - 10 * 4, 200 + 20 - 20 * 2,
                  100 + 10 + (RECT_WIDTH - 10) * 4,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]