Skip to content

Commit b155ad7

Browse files
committed
Update tests
1 parent a564eb4 commit b155ad7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

test/draw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const struct output dummy_output = {
3131

3232
wl_display_surface,
3333
wl_win_get_context,
34+
wl_win_get_surface,
3435

3536
noop_screen,
3637

@@ -48,6 +49,7 @@ const struct output dummy_output = {
4849

4950
x_display_surface,
5051
x_win_get_context,
52+
x_win_get_surface,
5153

5254
noop_screen,
5355

test/notification.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ TEST test_notification_icon_scaling_toosmall(void)
168168
struct notification *n = notification_load_icon_with_scaling(20, 100);
169169

170170
ASSERT(n->icon);
171-
ASSERT_EQ(get_icon_width(n->icon, 1), 20);
172-
ASSERT_EQ(get_icon_height(n->icon, 1), 20);
171+
ASSERT_EQ(get_icon_width(n->icon), 20);
172+
ASSERT_EQ(get_icon_height(n->icon), 20);
173173

174174
notification_unref(n);
175175

@@ -182,8 +182,8 @@ TEST test_notification_icon_scaling_toolarge(void)
182182
struct notification *n = notification_load_icon_with_scaling(5, 10);
183183

184184
ASSERT(n->icon);
185-
ASSERT_EQ(get_icon_width(n->icon, 1), 10);
186-
ASSERT_EQ(get_icon_height(n->icon, 1), 10);
185+
ASSERT_EQ(get_icon_width(n->icon), 10);
186+
ASSERT_EQ(get_icon_height(n->icon), 10);
187187

188188
notification_unref(n);
189189

@@ -195,8 +195,8 @@ TEST test_notification_icon_scaling_notconfigured(void)
195195
struct notification *n = notification_load_icon_with_scaling(0, 0);
196196

197197
ASSERT(n->icon);
198-
ASSERT_EQ(get_icon_width(n->icon, 1), 16);
199-
ASSERT_EQ(get_icon_height(n->icon, 1), 16);
198+
ASSERT_EQ(get_icon_width(n->icon), 16);
199+
ASSERT_EQ(get_icon_height(n->icon), 16);
200200

201201
notification_unref(n);
202202

@@ -208,8 +208,8 @@ TEST test_notification_icon_scaling_notneeded(void)
208208
struct notification *n = notification_load_icon_with_scaling(10, 20);
209209

210210
ASSERT(n->icon);
211-
ASSERT_EQ(get_icon_width(n->icon, 1), 16);
212-
ASSERT_EQ(get_icon_height(n->icon, 1), 16);
211+
ASSERT_EQ(get_icon_width(n->icon), 16);
212+
ASSERT_EQ(get_icon_height(n->icon), 16);
213213

214214
notification_unref(n);
215215

0 commit comments

Comments
 (0)