Bug 1476488 [wpt PR 12030] - Reporting: Payload field should be `body`, not `report`, a=testonly

Automatic update from web-platform-testsReporting: Payload field should be `body`, not `report`

Per https://w3c.github.io/reporting/#try-delivery, the field in a
JavaScript report object that contains the body is called `body`, not
`report`.

Bug: 704259
Change-Id: Iba3186a0104c2192ced5e4233d55e042e05908f3
Reviewed-on: https://chromium-review.googlesource.com/1140193
Reviewed-by: Misha Efimov <mef@chromium.org>
Commit-Queue: Douglas Creager <dcreager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575894}

--

wpt-commits: eecf62171b50238462d3046818e108a2b98b655c
wpt-pr: 12030
This commit is contained in:
Douglas Creager 2018-07-25 17:36:20 +00:00 коммит произвёл James Graham
Родитель 43c7396196
Коммит 6bfe0f6dd7
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -440077,7 +440077,7 @@
"support"
],
"content-security-policy/support/checkReport.sub.js": [
"5a67d7d16562a8925a916214bb1d0ab27f52ddf3",
"9349d682e7ebb6a7dc504d720733f6130d253855",
"support"
],
"content-security-policy/support/dedicated-worker-helper.js": [

Просмотреть файл

@ -73,8 +73,8 @@
if(data["csp-report"] != undefined && data["csp-report"][reportField] != undefined) {
assert_field_value(data["csp-report"][reportField], reportValue, reportField);
} else if (data[0] != undefined && data[0]["report"] != undefined && data[0]["report"][reportField] != undefined) {
assert_field_value(data[0]["report"][reportField], reportValue, reportField);
} else if (data[0] != undefined && data[0]["body"] != undefined && data[0]["body"][reportField] != undefined) {
assert_field_value(data[0]["body"][reportField], reportValue, reportField);
} else {
assert_equals("", reportField, "Expected report field could not be found in report");
}