aboutsummaryrefslogtreecommitdiff
path: root/test/cdp/commands-test.ts
diff options
context:
space:
mode:
authorastarring <zouzhigang85@gmail.com>2026-09-09 02:35:42 +0800
committerGitHub <noreply@github.com>2026-09-09 00:05:42 +0530
commit8d7a067c8d82a592bfb3dcacf05305c39550cbc6 (patch)
treecf6641e0d8ab749542adc4e605787e4e525b24b6 /test/cdp/commands-test.ts
parent6f455ed015b1b39324c45813a42b33ddb63e4bc9 (diff)
feat: add per-tab request headers (#30)
Expose explicit set and clear tools so environment-routed pages can be opened without leaking header values or carrying headers across unrelated browsing. Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com Co-authored-by: zouzhigang <zouzhigang@bytedance.com>
Diffstat (limited to 'test/cdp/commands-test.ts')
-rw-r--r--test/cdp/commands-test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cdp/commands-test.ts b/test/cdp/commands-test.ts
index ad1b057..738189d 100644
--- a/test/cdp/commands-test.ts
+++ b/test/cdp/commands-test.ts
@@ -42,6 +42,11 @@ describe("cdp command table", () => {
const r = decodeResult("Nope.method" as "Page.enable", {});
assert.equal(r.success, false);
});
+
+ test("accepts an empty Network.setExtraHTTPHeaders response", () => {
+ const r = decodeResult("Network.setExtraHTTPHeaders", {});
+ assert.equal(r.success, true);
+ });
});
describe("Accessibility.getFullAXTree schema", () => {