Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1

This commit is contained in:
Josh Matthews 2017-10-30 09:31:22 -04:00
parent 1b73cf3352
commit 75736751d9
1213 changed files with 19434 additions and 12344 deletions

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
<script>
window.addEventListener('securitypolicyviolation', function(e) {
log("FAIL");
});
</script>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' about: 'unsafe-inline'; connect-src 'self';">
<title>default-src-inline-allowed</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../support/logTest.sub.js?logs=[]"></script>
<script src='../support/alertAssert.sub.js?alerts=["PASS 1 of 2","PASS 2 of 2"]'></script>
</head>
<body onload="alert_assert(&apos;PASS 2 of 2&apos;)">
<script>
alert_assert('PASS 1 of 2');
</script>
<!--iframe src="javascript:alert_assert(&apos;Fail&apos;)"></iframe-->
<div id="log"></div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
<script>
window.addEventListener('securitypolicyviolation', function(e) {
log("violated-directive=" + e.violatedDirective);
});
</script>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self';">
<title>default-src-inline-blocked</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src='../support/logTest.sub.js?logs=["violated-directive=script-src","violated-directive=script-src"]'></script>
<script src='../support/alertAssert.sub.js?alerts=[]'></script>
</head>
<body>
<p>This test passes if the inline scripts don't create failing tests and a CSP report is sent.</p>
<script>
test(function() {
assert_unreached('FAIL inline script ran')
});
</script>
<script src="../support/document-write-alert-fail.js"></script>
<div id="log"></div>
</body>
</html>