Update web-platform-tests to revision bd951736b4d7dbfd862dfa0f27271b544e35ca30

This commit is contained in:
WPT Sync Bot 2019-01-22 20:47:08 -05:00 committed by Josh Matthews
parent 461bce1241
commit 74f3bef690
110 changed files with 2556 additions and 363 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -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>

View file

@ -0,0 +1 @@
Feature-Policy: legacy-image-formats 'none'