Update web-platform-tests to revision 2d42384cf21efd71843295d319c1bab85b3acf4a

This commit is contained in:
WPT Sync Bot 2019-01-11 20:32:19 -05:00
parent f2b224d610
commit e851ef0cd2
1014 changed files with 5653 additions and 1590 deletions

View file

@ -1,27 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Upgrade Insecure Requests: Images.</title>
<!-- Generated by wpt/upgrade-insecure-requests/support/generate.py -->
<title>Upgrade Insecure Requests: image.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/testharness-helper.sub.js"></script>
<script src="/mixed-content/generic/common.js"></script>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
</head>
<body>
<script>
var tests = [
generateURL(Host.SAME_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE),
generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.IMAGE),
generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE),
generateURL(Host.CROSS_ORIGIN, Protocol.SECURE, ResourceType.IMAGE),
];
tests.forEach(test => {
async_test(t => assert_image_loads(t, test.url, 64, 168), test.name);
async_test(t => assert_image_loads_in_srcdoc(t, test.url, 64, 168), test.name + " in <iframe srcdoc>");
async_test(t => assert_image_loads_in_blank(t, test.url, 64, 168), test.name + " in <iframe>");
});
const tests = generateTests(ResourceType.IMAGE, false);
tests.forEach(test => testMap['image'](test));
</script>
</body>
</html>