[mutter/gnome-41] tests/stage-view: Disable animations
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-41] tests/stage-view: Disable animations
- Date: Wed, 17 Nov 2021 08:33:22 +0000 (UTC)
commit 4c2b96cfb0011f08129ea4182618c6632a4cd7f7
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Sep 28 10:56:11 2021 +0200
tests/stage-view: Disable animations
Animations may interfere with test cases, e.g. by triggering relayouts,
repaints, when not expected. Disable them, so that more precise test
cases can be added.
src/tests/stage-view-tests.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/tests/stage-view-tests.c b/src/tests/stage-view-tests.c
index 2ce8003335..dbf2476cbc 100644
--- a/src/tests/stage-view-tests.c
+++ b/src/tests/stage-view-tests.c
@@ -1288,6 +1288,8 @@ main (int argc, char *argv[])
{
g_autoptr (MetaContext) context = NULL;
+ g_setenv ("MUTTER_DEBUG_DISABLE_ANIMATIONS", "1", TRUE);
+
context = meta_create_test_context (META_CONTEXT_TEST_TYPE_NESTED,
META_CONTEXT_TEST_FLAG_TEST_CLIENT);
g_assert (meta_context_configure (context, &argc, &argv, NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]