summaryrefslogtreecommitdiffstats
path: root/toolkit/components/backgroundtasks/tests/xpcshell/experiment.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /toolkit/components/backgroundtasks/tests/xpcshell/experiment.json
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/backgroundtasks/tests/xpcshell/experiment.json')
-rw-r--r--toolkit/components/backgroundtasks/tests/xpcshell/experiment.json102
1 files changed, 102 insertions, 0 deletions
diff --git a/toolkit/components/backgroundtasks/tests/xpcshell/experiment.json b/toolkit/components/backgroundtasks/tests/xpcshell/experiment.json
new file mode 100644
index 0000000000..606cff3de9
--- /dev/null
+++ b/toolkit/components/backgroundtasks/tests/xpcshell/experiment.json
@@ -0,0 +1,102 @@
+{
+ "permissions": {},
+ "data": {
+ "slug": "test-experiment",
+ "appId": "firefox-desktop",
+ "appName": "firefox_desktop",
+ "channel": "",
+ "endDate": null,
+ "branches": [
+ {
+ "slug": "treatment-a",
+ "ratio": 1,
+ "feature": {
+ "value": {},
+ "enabled": false,
+ "featureId": "this-is-included-for-desktop-pre-95-support"
+ },
+ "features": [
+ {
+ "value": {
+ "id": "test-experiment:treatment-a",
+ "groups": ["backgroundTaskMessage"],
+ "content": {
+ "body": "Body A",
+ "title": "Treatment A",
+ "tag": "should_be_overridden_a"
+ },
+ "trigger": {
+ "id": "backgroundTask"
+ },
+ "priority": 1,
+ "template": "toast_notification",
+ "frequency": {
+ "lifetime": 2
+ },
+ "targeting": "true"
+ },
+ "enabled": true,
+ "featureId": "backgroundTaskMessage"
+ }
+ ]
+ },
+ {
+ "slug": "treatment-b",
+ "ratio": 1,
+ "feature": {
+ "value": {},
+ "enabled": false,
+ "featureId": "this-is-included-for-desktop-pre-95-support"
+ },
+ "features": [
+ {
+ "value": {
+ "id": "test-experiment:treatment-b",
+ "groups": ["backgroundTaskMessage"],
+ "content": {
+ "body": "Body B",
+ "title": "Treatment B"
+ },
+ "trigger": {
+ "id": "backgroundTask"
+ },
+ "priority": 1,
+ "template": "toast_notification",
+ "frequency": {
+ "lifetime": 2
+ },
+ "targeting": "true"
+ },
+ "enabled": true,
+ "featureId": "backgroundTaskMessage"
+ }
+ ]
+ }
+ ],
+ "outcomes": [],
+ "arguments": {},
+ "isRollout": false,
+ "probeSets": [],
+ "startDate": null,
+ "targeting": "('app.shield.optoutstudies.enabled'|preferenceValue) && (version|versionCompare('102.!') >= 0)",
+ "featureIds": ["backgroundTaskMessage"],
+ "application": "firefox-desktop",
+ "bucketConfig": {
+ "count": 10000,
+ "start": 0,
+ "total": 10000,
+ "namespace": "firefox-desktop-backgroundTaskMessage-1",
+ "randomizationUnit": "normandy_id"
+ },
+ "schemaVersion": "1.8.0",
+ "userFacingName": "test-experiment",
+ "referenceBranch": "treatment-a",
+ "proposedDuration": 28,
+ "enrollmentEndDate": null,
+ "isEnrollmentPaused": false,
+ "proposedEnrollment": 7,
+ "userFacingDescription": "Test experiment to test supporting the Messaging System in Firefox background tasks.",
+ "id": "test-experiment",
+ "last_modified": 1657578927064
+ }
+}