mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e
This commit is contained in:
parent
81ca858678
commit
d6ba94ca28
2339 changed files with 89274 additions and 9328 deletions
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Upgrade Insecure Requests: Images.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="./support/testharness-helper.sub.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>");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue