From b155ad7fefeb7b34d8bf1ed9e7cd9a3049330707 Mon Sep 17 00:00:00 2001 From: bynect <68197565+bynect@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:20:48 +0200 Subject: [PATCH] Update tests --- test/draw.c | 2 ++ test/notification.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/test/draw.c b/test/draw.c index 2b2b5d389..b1014bef8 100644 --- a/test/draw.c +++ b/test/draw.c @@ -31,6 +31,7 @@ const struct output dummy_output = { wl_display_surface, wl_win_get_context, + wl_win_get_surface, noop_screen, @@ -48,6 +49,7 @@ const struct output dummy_output = { x_display_surface, x_win_get_context, + x_win_get_surface, noop_screen, diff --git a/test/notification.c b/test/notification.c index 392580c79..2daedfd17 100644 --- a/test/notification.c +++ b/test/notification.c @@ -168,8 +168,8 @@ TEST test_notification_icon_scaling_toosmall(void) struct notification *n = notification_load_icon_with_scaling(20, 100); ASSERT(n->icon); - ASSERT_EQ(get_icon_width(n->icon, 1), 20); - ASSERT_EQ(get_icon_height(n->icon, 1), 20); + ASSERT_EQ(get_icon_width(n->icon), 20); + ASSERT_EQ(get_icon_height(n->icon), 20); notification_unref(n); @@ -182,8 +182,8 @@ TEST test_notification_icon_scaling_toolarge(void) struct notification *n = notification_load_icon_with_scaling(5, 10); ASSERT(n->icon); - ASSERT_EQ(get_icon_width(n->icon, 1), 10); - ASSERT_EQ(get_icon_height(n->icon, 1), 10); + ASSERT_EQ(get_icon_width(n->icon), 10); + ASSERT_EQ(get_icon_height(n->icon), 10); notification_unref(n); @@ -195,8 +195,8 @@ TEST test_notification_icon_scaling_notconfigured(void) struct notification *n = notification_load_icon_with_scaling(0, 0); ASSERT(n->icon); - ASSERT_EQ(get_icon_width(n->icon, 1), 16); - ASSERT_EQ(get_icon_height(n->icon, 1), 16); + ASSERT_EQ(get_icon_width(n->icon), 16); + ASSERT_EQ(get_icon_height(n->icon), 16); notification_unref(n); @@ -208,8 +208,8 @@ TEST test_notification_icon_scaling_notneeded(void) struct notification *n = notification_load_icon_with_scaling(10, 20); ASSERT(n->icon); - ASSERT_EQ(get_icon_width(n->icon, 1), 16); - ASSERT_EQ(get_icon_height(n->icon, 1), 16); + ASSERT_EQ(get_icon_width(n->icon), 16); + ASSERT_EQ(get_icon_height(n->icon), 16); notification_unref(n);