summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fledge/tentative/kanon-status-not-calculated.https.window.js
blob: a3ac19bd85e5f2abcedba9c973177bcf602d4cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// META: script=/resources/testdriver.js
// META: script=/common/utils.js
// META: script=resources/fledge-util.sub.js
// META: script=/common/subset-tests.js

"use strict;"

subsetTest(promise_test, async test => {
    const uuid = generateUuid(test);
    await runReportTest(
        test, uuid,
        { reportWinSuccessCondition:
            `browserSignals.kAnonStatus === "notCalculated"`,
          reportWin:
            `sendReportTo('${createBidderReportURL(uuid)}');` },
        // expectedReportUrls:
        [createBidderReportURL(uuid)]);
    },
    'Check kAnonStatus is "notCalculated" when FledgeConsiderKAnonymity' +
    'and FledgeEnforceKAnonymity are both disabled');