Skip to content

Commit

Permalink
Modified gpc test (Issue #407)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverWang13 committed Mar 23, 2023
1 parent 954e555 commit 0e80487
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/background/gpc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,8 @@

it('Tests whether the GPC and header signal are properly set', async () => {
const page = await browser.newPage()
let rules;
//let gpc;


await page.goto("https://example.org/foo/bar.html")
await page.reload();

const gpc_neg = await page.evaluate(async () => {
await new Promise(resolve => setTimeout(resolve, 1000));

return (async () => {
return navigator.globalPrivacyControl
})()
})

await page.goto(`https://global-privacy-control.glitch.me/`)

await page.reload();
Expand All @@ -76,7 +63,6 @@



assert.equal(gpc_neg, undefined);
assert.equal(header, 'Header present \nSec-GPC: "1"');
assert.equal(gpc, true);
})
Expand Down

0 comments on commit 0e80487

Please sign in to comment.