Skip to content

Commit 48de14a

Browse files
committed
null JS tests where we are not checking the output
1 parent f74647c commit 48de14a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/browser/html/window.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,22 +293,22 @@ test "Browser.HTML.Window" {
293293
\\ }
294294
\\ }
295295
,
296-
"undefined",
296+
null,
297297
},
298-
.{ "let id = requestAnimationFrame(step);", "undefined" },
298+
.{ "requestAnimationFrame(step);", null }, // returned id is checked in the next test
299299
}, .{});
300300

301301
// cancelAnimationFrame should be able to cancel a request with the given id
302302
try runner.testCases(&.{
303-
.{ "let request_id = requestAnimationFrame(timestamp => {});", "undefined" },
303+
.{ "let request_id = requestAnimationFrame(timestamp => {});", null },
304304
.{ "cancelAnimationFrame(request_id);", "undefined" },
305305
}, .{});
306306

307307
try runner.testCases(&.{
308308
.{ "innerHeight", "1" },
309309
.{ "innerWidth", "1" }, // Width is 1 even if there are no elements
310-
.{ "document.createElement('div').getClientRects()", "[object Object]" },
311-
.{ "document.createElement('div').getClientRects()", "[object Object]" },
310+
.{ "document.createElement('div').getClientRects()", null },
311+
.{ "document.createElement('div').getClientRects()", null },
312312
.{ "innerHeight", "1" },
313313
.{ "innerWidth", "2" },
314314
}, .{});

0 commit comments

Comments
 (0)