mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-10 21:33:54 -04:00
fix test running
This commit is contained in:
7 files changed
+25
-3
No files matched your search
@@ -1516,6 +1516,7 @@ test "cdp: syncRequest short-circuits after disconnect" {
|
||||
const transfer = try client.newRequest(.{
|
||||
.method = .GET,
|
||||
.url = "http://127.0.0.1:9582/",
|
||||
.origin = null,
|
||||
.credentials_mode = .omit,
|
||||
.request_mode = .no_cors,
|
||||
.resource_type = .fetch,
|
||||
|
||||
@@ -1177,6 +1177,7 @@ test "cdp.Network: setBlockedURLs blocks requests with inspector reason" {
|
||||
.loader_id = 1,
|
||||
.method = .GET,
|
||||
.url = "https://blocked.test/script.js",
|
||||
.origin = bc.security_origin,
|
||||
.credentials_mode = .omit,
|
||||
.request_mode = .no_cors,
|
||||
.resource_type = .script,
|
||||
@@ -1203,6 +1204,7 @@ test "cdp.Network: setBlockedURLs blocks requests with inspector reason" {
|
||||
.loader_id = 1,
|
||||
.method = .GET,
|
||||
.url = "http://127.0.0.1:9582/redirect-no-fragment",
|
||||
.origin = bc.security_origin,
|
||||
.credentials_mode = .omit,
|
||||
.request_mode = .no_cors,
|
||||
.resource_type = .script,
|
||||
@@ -1243,6 +1245,7 @@ test "cdp.Network: POST body exposed as postData" {
|
||||
.loader_id = 1,
|
||||
.method = .POST,
|
||||
.url = "http://127.0.0.1:9582/echo_body",
|
||||
.origin = bc.security_origin,
|
||||
.body = body,
|
||||
.credentials_mode = .omit,
|
||||
.request_mode = .no_cors,
|
||||
@@ -1510,6 +1513,7 @@ test "cdp.Network: redirect hop precedes Fetch pause and carries redirectRespons
|
||||
.loader_id = 7,
|
||||
.method = .GET,
|
||||
.url = start_url,
|
||||
.origin = bc.security_origin,
|
||||
.credentials_mode = .omit,
|
||||
.request_mode = .no_cors,
|
||||
.resource_type = .script,
|
||||
|
||||
Reference in new issue
Block a user