mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-08-01 02:06:17 -04:00
test: Filter out expected error messages from tests
Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -471,6 +471,9 @@ pub const JsApi = struct {
|
||||
|
||||
const testing = @import("../../testing.zig");
|
||||
test "WebApi: Worker" {
|
||||
const filter: testing.LogFilter = .init(&.{ .http });
|
||||
defer filter.deinit();
|
||||
|
||||
// Worker tests chain a worker-script fetch with a dynamic-import fetch
|
||||
// and a cross-context postMessage. The default 2 s assertion budget can
|
||||
// blow up on TSAN CI; give it more room.
|
||||
|
||||
@@ -177,5 +177,7 @@ pub const Build = struct {
|
||||
|
||||
const testing = @import("../../../../testing.zig");
|
||||
test "WebApi: Script" {
|
||||
const filter: testing.LogFilter = .init(&.{ .http });
|
||||
defer filter.deinit();
|
||||
try testing.htmlRunner("element/html/script", .{});
|
||||
}
|
||||
|
||||
@@ -1172,6 +1172,9 @@ test "agent script runtime: re-goto on the same page object replaces its page" {
|
||||
}
|
||||
|
||||
test "agent script runtime: a failed navigation rejects the goto promise" {
|
||||
const filter: testing.LogFilter = .init(&.{ .frame });
|
||||
defer filter.deinit();
|
||||
|
||||
defer testing.reset();
|
||||
defer testing.test_session.closeAllPages();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user