Update web-platform-tests to revision 755d18230983e9c7d894768b73fabff8bc290d91

This commit is contained in:
WPT Sync Bot 2019-05-31 10:26:18 +00:00
parent d544c186b9
commit fa788e624b
70 changed files with 1929 additions and 380 deletions

View file

@ -0,0 +1 @@
<!doctype html> <html class="reftest-wait"> <meta charset="utf-8"> <title>input multiline placeholder (CR)</title> <link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute"> <meta name="assert" content="input element's placeholder strips newlines (CR)"> <link rel="match" href="multiline-placeholder-ref.html"> <input placeholder="this is a multiline placeholder"> <input placeholder="this is&#xd;a multiline&#xd;&#xd;placeholder"> <input id="dynamic"> <script> document.querySelector("#dynamic") .setAttribute("placeholder", "this is\ra multiline\r\rplaceholder"); document.documentElement.classList.remove("reftest-wait"); </script> </html>

View file

@ -0,0 +1,19 @@
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>input multiline placeholder (CRLF)</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
<meta name="assert" content="input element's placeholder strips newlines (CRLF)">
<link rel="match" href="multiline-placeholder-ref.html">
<input placeholder="this is
a multiline
placeholder">
<input placeholder="this is&#xd;&#xa;a multiline&#xd;&#xa;&#xd;&#xa;placeholder">
<input id="dynamic">
<script>
document.querySelector("#dynamic")
.setAttribute("placeholder", "this is\r\na multiline\r\n\r\nplaceholder");
document.documentElement.classList.remove("reftest-wait");
</script>
</html>

View file

@ -0,0 +1,5 @@
<!doctype html>
<meta charset=utf-8>
<input placeholder="this isa multilineplaceholder">
<input placeholder="this isa multilineplaceholder">
<input placeholder="this isa multilineplaceholder">

View file

@ -0,0 +1,19 @@
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>input multiline placeholder</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
<meta name="assert" content="input element's placeholder strips newlines">
<link rel="match" href="multiline-placeholder-ref.html">
<input placeholder="this is
a multiline
placeholder">
<input placeholder="this is&#xa;a multiline&#xa;&#xa;placeholder">
<input id="dynamic">
<script>
document.querySelector("#dynamic")
.setAttribute("placeholder", "this is\na multiline\n\nplaceholder");
document.documentElement.classList.remove("reftest-wait");
</script>
</html>

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>disabled works properly for number inputs</title>
<link rel="help" href="https://html.spec.whatwg.org/#enabling-and-disabling-form-controls:-the-disabled-attribute">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1461706">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<input type="number" disabled>
<input type="number" disabled style="-moz-appearance: textfield; -webkit-appearance: textfield">
<script>
test(function() {
for (const element of Array.from(document.querySelectorAll('input'))) {
element.focus();
assert_true(element.disabled);
assert_equals(document.activeElement, document.body);
}
}, "disabled works on number input regardless of appearance");
</script>