summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js')
-rw-r--r--testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js b/testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js
new file mode 100644
index 0000000000..4eac4a8e91
--- /dev/null
+++ b/testing/web-platform/tests/fledge/tentative/kanon-status-below-threshold.https.window.js
@@ -0,0 +1,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 === "belowThreshold"`,
+ reportWin:
+ `sendReportTo('${createBidderReportURL(uuid)}');` },
+ // expectedReportUrls:
+ [createBidderReportURL(uuid)]);
+ },
+ 'Check kAnonStatus is "belowThreshold" when FledgeConsiderKAnonymity' +
+ 'is enabled and FledgeEnforceKAnonymity is disabled');