Skip to content

Commit f38a60a

Browse files
committed
Update tests
1 parent a564eb4 commit f38a60a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/icon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ static bool icon_size_clamp(int *w, int *h, int min_size, int max_size) {
154154
*
155155
* @param pixbuf (nullable) The pixbuf, which may be too big.
156156
* Takes ownership of the reference.
157-
* @param dpi_scale A double for the dpi scaling.
158157
* @param min_size The minimum allowed icon size.
159158
* @param max_size The maximum allowed icon size.
160159
* @return the scaled version of the pixbuf. If scaling wasn't

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)