Update web-platform-tests to revision 7d24adef541b2e836f2b2f9534ce3f0e078f5782

This commit is contained in:
WPT Sync Bot 2020-03-18 08:20:08 +00:00
parent 9fb83d8143
commit bd54acb29d
15749 changed files with 178578 additions and 425713 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="content-security-policy" content="script-src 'self'">
<script>inline = true;</script>
<script src="http-equiv-enumerated-ascii-case-insensitive-message.js"></script>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="CoNtEnT-sEcUrItY-pOlIcY" content="script-src 'self'">
<script>inline = true;</script>
<script src="http-equiv-enumerated-ascii-case-insensitive-message.js"></script>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="content-ſecurity-policy" content="script-src 'self'">
<script>inline = true;</script>
<script src="http-equiv-enumerated-ascii-case-insensitive-message.js"></script>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://html.spec.whatwg.org/#attr-meta-http-equiv">
<link rel="help" href="https://html.spec.whatwg.org/#enumerated-attribute">
<meta name="assert" content="meta@http-equiv values are ASCII case-insensitive">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function() {
let loaded = 0;
// we use a message rather than the iframes load event to avoid dealing with
// spurious load events that some browsers dispatch on the initial about:blank
addEventListener("message", this.step_func(event => {
if (++loaded == 3) {
const iframe = document.querySelectorAll("iframe");
assert_equals(iframe[0].contentWindow.inline,
undefined, "lowercase valid");
assert_equals(iframe[1].contentWindow.inline,
undefined, "mixed case valid");
assert_equals(iframe[2].contentWindow.inline,
true, "non-ASCII invalid");
this.done();
}
}));
}, "keyword content-security-policy");
</script>
<iframe src="http-equiv-enumerated-ascii-case-insensitive-lower.html"></iframe>
<iframe src="http-equiv-enumerated-ascii-case-insensitive-mixed.html"></iframe>
<iframe src="http-equiv-enumerated-ascii-case-insensitive-other.html"></iframe>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
p:after { font-weight: bold; }
p:after { content: "PASS"; color: green; }
</style>
<p>text/css treated as CSS?
<p>TeXt/CsS treated as CSS?
<p>text/cſs ignored?

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://html.spec.whatwg.org/#update-a-style-block">
<link rel="match" href="update-style-block-ascii-case-insensitive-ref.html">
<meta name="assert" content="style@type values are ASCII case-insensitive">
<style>
p:after { font-weight: bold; }
p:after { content: "FAIL"; color: red; }
#c:after { content: "PASS"; color: green; }
</style>
<style type="text/css">#a:after { content: "PASS"; color: green; }</style>
<style type="TeXt/CsS">#b:after { content: "PASS"; color: green; }</style>
<style type="text/cſs">#c:after { content: "FAIL"; color: red; }</style>
<p id="a">text/css treated as CSS?
<p id="b">TeXt/CsS treated as CSS?
<p id="c">text/cſs ignored?