mirror of
https://github.com/servo/servo.git
synced 2025-09-06 21:18:20 +01:00
Update web-platform-tests to revision bd951736b4d7dbfd862dfa0f27271b544e35ca30
This commit is contained in:
parent
461bce1241
commit
74f3bef690
110 changed files with 2556 additions and 363 deletions
BIN
tests/wpt/web-platform-tests/feature-policy/reporting/image.bmp
Normal file
BIN
tests/wpt/web-platform-tests/feature-policy/reporting/image.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src='/resources/testharness.js'></script>
|
||||
<script src='/resources/testharnessreport.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<img src="image.bmp">
|
||||
<script>
|
||||
var check_report_format = (reports, observer) => {
|
||||
let report = reports[0];
|
||||
assert_equals(report.type, "feature-policy-violation");
|
||||
assert_equals(report.url, document.location.href);
|
||||
assert_equals(report.body.featureId, "legacy-image-formats");
|
||||
assert_equals(report.body.disposition, "enforce");
|
||||
};
|
||||
|
||||
async_test(t => {
|
||||
new ReportingObserver(t.step_func_done(check_report_format),
|
||||
{types: ['feature-policy-violation'], buffered: true}).observe();
|
||||
}, "Unsized-media Report Format");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Feature-Policy: legacy-image-formats 'none'
|
Loading…
Add table
Add a link
Reference in a new issue