From 3686b1cf6fbfe9700d4d6e2014a52d8e8d3ec7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 16 May 2023 14:47:19 +0200 Subject: [PATCH] test-runner: Support parsing monitor-relative window positions Can do: assert_position w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.75 Part-of: --- src/tests/test-runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test-runner.c b/src/tests/test-runner.c index d8c2d27b4..0affbf97f 100644 --- a/src/tests/test-runner.c +++ b/src/tests/test-runner.c @@ -1323,8 +1323,8 @@ test_case_do (TestCase *test, MtkRectangle frame_rect; meta_window_get_frame_rect (window, &frame_rect); - int x = atoi (argv[2]); - int y = atoi (argv[3]); + int x = parse_window_size (window, argv[2]); + int y = parse_window_size (window, argv[3]); if (frame_rect.x != x || frame_rect.y != y) { g_set_error (error,