Attention is currently required from: Adarsh Murthy.
3 comments:
File third_party/blink/web_tests/wpt_internal/attribution-reporting/simple-event-level-report-test.sub.https.html:
assert_equals(report.source_debug_key, '246');
assert_equals(report.trigger_debug_key, '357');
Maybe put `'246'` and `'357'` into `const` vars since they are used 3 times each?
Patch Set #2, Line 58: Collect debug reports.
`'Debug report is received if source and trigger debug keys are set.'`
attribution_reporting_promise_test(async t => {
const cookie = 'ar_debug=1;Secure;HttpOnly;SameSite=None;Path=/';
registerAttributionSrc('Attribution-Reporting-Register-Source', {
source_event_id: '1',
destination: `https://{{host}}`,
debug_key: '246',
}, cookie);
registerAttributionSrc('Attribution-Reporting-Register-Trigger', {
event_trigger_data: [{trigger_data: '0'}],
debug_key: '357',
}, cookie);
const payload = await pollEventLevelReports();
assert_equals(payload.reports.length, 1);
const report = JSON.parse(payload.reports[0].body);
assert_equals(report.source_debug_key, '246');
assert_equals(report.trigger_debug_key, '357');
const debugPayload = await pollEventLevelDebugReports();
assert_equals(debugPayload.reports.length, 1);
const debugReport = JSON.parse(debugPayload.reports[0].body);
assert_equals(debugReport.source_debug_key, '246');
assert_equals(debugReport.trigger_debug_key, '357');
}, 'Collect debug reports.');
Let's move this to its own test file, since it's not related to simple event level reports.
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Adarsh Murthy.
Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/34556.
When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.
WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process
Attention is currently required from: Andrew Paseltiner.
3 comments:
File third_party/blink/web_tests/wpt_internal/attribution-reporting/simple-event-level-report-test.sub.https.html:
assert_equals(report.source_debug_key, '246');
assert_equals(report.trigger_debug_key, '357');
Maybe put `'246'` and `'357'` into `const` vars since they are used 3 times each?
Done
attribution_reporting_promise_test(async t => {
const cookie = 'ar_debug=1;Secure;HttpOnly;SameSite=None;Path=/';
registerAttributionSrc('Attribution-Reporting-Register-Source', {
source_event_id: '1',
destination: `https://{{host}}`,
debug_key: '246',
}, cookie);
registerAttributionSrc('Attribution-Reporting-Register-Trigger', {
event_trigger_data: [{trigger_data: '0'}],
debug_key: '357',
}, cookie);
const payload = await pollEventLevelReports();
assert_equals(payload.reports.length, 1);
const report = JSON.parse(payload.reports[0].body);
assert_equals(report.source_debug_key, '246');
assert_equals(report.trigger_debug_key, '357');
const debugPayload = await pollEventLevelDebugReports();
assert_equals(debugPayload.reports.length, 1);
const debugReport = JSON.parse(debugPayload.reports[0].body);
assert_equals(debugReport.source_debug_key, '246');
assert_equals(debugReport.trigger_debug_key, '357');
}, 'Collect debug reports.');
Let's move this to its own test file, since it's not related to simple event level reports.
Done
Patch Set #2, Line 58: Collect debug reports.
`'Debug report is received if source and trigger debug keys are set. […]
Done
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Adarsh Murthy.
1 comment:
Patchset:
Please rebase.
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Andrew Paseltiner.
1 comment:
Patchset:
Please rebase.
Done
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Adarsh Murthy.
3 comments:
File third_party/blink/web_tests/wpt_internal/attribution-reporting/event-level-debug-report-test.sub.https.html:
Patch Set #6, Line 11: registerAttributionSrc
Please add an `await` here, since this function returns a promise.
Patch Set #6, Line 19: registerAttributionSrc
Please add an `await` here, since this function returns a promise.
Patch Set #6, Line 31: const debugPayload = await pollEventLevelDebugReports();
Please add a blank line above this one for readability.
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Andrew Paseltiner.
3 comments:
File third_party/blink/web_tests/wpt_internal/attribution-reporting/event-level-debug-report-test.sub.https.html:
Patch Set #6, Line 11: registerAttributionSrc
Please add an `await` here, since this function returns a promise.
Done
Patch Set #6, Line 19: registerAttributionSrc
Please add an `await` here, since this function returns a promise.
Done
Patch Set #6, Line 31: const debugPayload = await pollEventLevelDebugReports();
Please add a blank line above this one for readability.
Done
To view, visit change 3721875. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Adarsh Murthy.
Patch set 7:Quick-Run +1Code-Review +1Commit-Queue +1
Attention is currently required from: Adarsh Murthy.
Patch set 7:Commit-Queue +2
Chromium LUCI CQ submitted this change.
Adds test for debug reports.
Adds debug event report endpoint.
Bug: 1338942
Change-Id: I488b5130564ea1e95ea9e648b4fd4bc26cea72dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3721875
Reviewed-by: Andrew Paseltiner <apase...@chromium.org>
Commit-Queue: Adarsh Murthy <adarsh...@google.com>
Cr-Commit-Position: refs/heads/main@{#1022759}
---
A third_party/blink/web_tests/external/wpt/.well-known/attribution-reporting/debug/report-event-attribution
A third_party/blink/web_tests/wpt_internal/attribution-reporting/event-level-debug-report-test.sub.https.html
M third_party/blink/web_tests/wpt_internal/attribution-reporting/resources/helpers.js
3 files changed, 68 insertions(+), 0 deletions(-)
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/34556