Bug 1619510 [wpt PR 22056] - tests: added conformance-checker tests for autocomplete attribute, a=testonly

Automatic update from web-platform-tests
cc Add tests for autocomplete attribute

--

wpt-commits: 34f3acabcceff6504c38bd826aca9c0728f26234
wpt-pr: 22056
This commit is contained in:
Mark Rogers 2020-03-05 21:32:41 +00:00 committed by moz-wptsync-bot
parent 0141b1f36c
commit 742e81422a
19 changed files with 571 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- address type must come before field type -->
<input autocomplete="country shipping">
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- empty -->
<input autocomplete="">
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<input autocomplete="country section-blue">
</body>
</html>

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is valid</title>
</head>
<body>
<!-- country -->
<input autocomplete="country">
<input autocomplete="billing country">
<input autocomplete="section-blue country">
<input autocomplete="section-blue billing country">
<!-- cc-type -->
<input autocomplete="cc-type">
<input autocomplete="billing cc-type">
<input autocomplete="section-blue cc-type">
<input autocomplete="section-blue billing cc-type">
<!-- cc-exp-month -->
<input autocomplete="cc-exp-month">
<input autocomplete="billing cc-exp-month">
<input autocomplete="section-blue cc-exp-month">
<input autocomplete="section-blue billing cc-exp-month">
<!-- cc-exp-year -->
<input autocomplete="cc-exp-year">
<input autocomplete="billing cc-exp-year">
<input autocomplete="section-blue cc-exp-year">
<input autocomplete="section-blue billing cc-exp-year">
<!-- tel-country-code -->
<input autocomplete="work tel-country-code">
<input autocomplete="billing work tel-country-code">
<input autocomplete="section-blue work tel-country-code">
<input autocomplete="section-blue billing work tel-country-code">
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- unknown field type -->
<input autocomplete="qwerty">
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<input autocomplete="country work">
</body>
</html>

View File

@ -967,6 +967,11 @@
"html/elements/img/src/userinfo-username-contains-pile-of-poo-novalid.html": "Bad value \u201chttp://\ud83d\udca9:foo@example.com\u201d for attribute \u201csrc\u201d on element \u201cimg\u201d: Bad URL: Illegal character in user or password: \u201c\ud83d\udca9\u201d is not allowed.", "html/elements/img/src/userinfo-username-contains-pile-of-poo-novalid.html": "Bad value \u201chttp://\ud83d\udca9:foo@example.com\u201d for attribute \u201csrc\u201d on element \u201cimg\u201d: Bad URL: Illegal character in user or password: \u201c\ud83d\udca9\u201d is not allowed.",
"html/elements/img/usemap-bad-value-novalid.html": "Bad value \u201c#\u201d for attribute \u201cusemap\u201d on element \u201cimg\u201d: Bad hash-name reference: A hash-name reference must have at least one character after \u201c#\u201d.", "html/elements/img/usemap-bad-value-novalid.html": "Bad value \u201c#\u201d for attribute \u201cusemap\u201d on element \u201cimg\u201d: Bad hash-name reference: A hash-name reference must have at least one character after \u201c#\u201d.",
"html/elements/img/width-height-negative-novalid.html": "Bad value \u201c-1\u201d for attribute \u201cwidth\u201d on element \u201cimg\u201d: Bad non-negative integer: Expected a digit but saw \u201c-\u201d instead.", "html/elements/img/width-height-negative-novalid.html": "Bad value \u201c-1\u201d for attribute \u201cwidth\u201d on element \u201cimg\u201d: Bad non-negative integer: Expected a digit but saw \u201c-\u201d instead.",
"html/elements/input/autocomplete-address-novalid.html": "Bad value \u201ccountry shipping\u201d for attribute \u201cautocomplete\u201d on element \u201cinput\u201d: The token \u201cshipping\u201d must only appear as either the first token in a list of autofill detail tokens, or, if the first token is a \u201csection-*\u201d indicator, as the second token.",
"html/elements/input/autocomplete-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201cautocomplete\u201d on element \u201cinput\u201d: Must not be empty.",
"html/elements/input/autocomplete-section-novalid.html": "Bad value \u201ccountry section-blue\u201d for attribute \u201cautocomplete\u201d on element \u201cinput\u201d: A \u201csection-*\u201d indicator must only appear as the first token in a list of autofill detail tokens.",
"html/elements/input/autocomplete-token-novalid.html": "Bad value \u201cqwerty\u201d for attribute \u201cautocomplete\u201d on element \u201cinput\u201d: The string \u201cqwerty\u201d is not a valid autofill field name.",
"html/elements/input/autocomplete-work-novalid.html": "Bad value \u201ccountry work\u201d for attribute \u201cautocomplete\u201d on element \u201cinput\u201d: The token \u201cwork\u201d must only appear before any autofill field names.",
"html/elements/input/list-novalid.html": "The \u201clist\u201d attribute of the \u201cinput\u201d element must refer to a \u201cdatalist\u201d element.", "html/elements/input/list-novalid.html": "The \u201clist\u201d attribute of the \u201cinput\u201d element must refer to a \u201cdatalist\u201d element.",
"html/elements/input/type-image-formaction-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201cformaction\u201d on element \u201cinput\u201d: Bad URL: Must be non-empty.", "html/elements/input/type-image-formaction-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201cformaction\u201d on element \u201cinput\u201d: Bad URL: Must be non-empty.",
"html/elements/input/type-image-formaction-whitespace-only-novalid.html": "Bad value \u201c\t \n\u201d for attribute \u201cformaction\u201d on element \u201cinput\u201d: Bad URL: Must be non-empty.", "html/elements/input/type-image-formaction-whitespace-only-novalid.html": "Bad value \u201c\t \n\u201d for attribute \u201cformaction\u201d on element \u201cinput\u201d: Bad URL: Must be non-empty.",
@ -2360,6 +2365,16 @@
"html/parser/u10ffff-charref-novalid.html": "Character reference expands to an astral non-character (U+10ffff).", "html/parser/u10ffff-charref-novalid.html": "Character reference expands to an astral non-character (U+10ffff).",
"html/parser/ufffe-charref-novalid.html": "Character reference expands to a non-character (U+fffe).", "html/parser/ufffe-charref-novalid.html": "Character reference expands to a non-character (U+fffe).",
"html/parser/unassigned-charref-novalid.html": "Character reference expands to a permanently unassigned code point.", "html/parser/unassigned-charref-novalid.html": "Character reference expands to a permanently unassigned code point.",
"select/autocomplete-address-novalid.html": "Bad value \u201ccountry shipping\u201d for attribute \u201cautocomplete\u201d on element \u201cselect\u201d: Bad autocomplete detail tokens (any): The token \u201cshipping\u201d must only appear as either the first token in a list of autofill detail tokens, or, if the first token is a \u201csection-*\u201d indicator, as the second token.",
"select/autocomplete-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201cautocomplete\u201d on element \u201cselect\u201d: Bad autocomplete detail tokens (any): Must not be empty.",
"select/autocomplete-section-novalid.html": "Bad value \u201ccountry section-blue\u201d for attribute \u201cautocomplete\u201d on element \u201cselect\u201d: Bad autocomplete detail tokens (any): A \u201csection-*\u201d indicator must only appear as the first token in a list of autofill detail tokens.",
"select/autocomplete-token-novalid.html": "Bad value \u201cqwerty\u201d for attribute \u201cautocomplete\u201d on element \u201cselect\u201d: Bad autocomplete detail tokens (any): The string \u201cqwerty\u201d is not a valid autofill field name.",
"select/autocomplete-work-novalid.html": "Bad value \u201ccountry work\u201d for attribute \u201cautocomplete\u201d on element \u201cselect\u201d: Bad autocomplete detail tokens (any): The token \u201cwork\u201d must only appear before any autofill field names.",
"textarea/autocomplete-address-novalid.html": "Bad value \u201ccountry shipping\u201d for attribute \u201cautocomplete\u201d on element \u201ctextarea\u201d: Bad autocomplete detail tokens (any): The token \u201cshipping\u201d must only appear as either the first token in a list of autofill detail tokens, or, if the first token is a \u201csection-*\u201d indicator, as the second token.",
"textarea/autocomplete-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201cautocomplete\u201d on element \u201ctextarea\u201d: Bad autocomplete detail tokens (any): Must not be empty.",
"textarea/autocomplete-section-novalid.html": "Bad value \u201ccountry section-blue\u201d for attribute \u201cautocomplete\u201d on element \u201ctextarea\u201d: Bad autocomplete detail tokens (any): A \u201csection-*\u201d indicator must only appear as the first token in a list of autofill detail tokens.",
"textarea/autocomplete-token-novalid.html": "Bad value \u201cqwerty\u201d for attribute \u201cautocomplete\u201d on element \u201ctextarea\u201d: Bad autocomplete detail tokens (any): The string \u201cqwerty\u201d is not a valid autofill field name.",
"textarea/autocomplete-work-novalid.html": "Bad value \u201ccountry work\u201d for attribute \u201cautocomplete\u201d on element \u201ctextarea\u201d: Bad autocomplete detail tokens (any): The token \u201cwork\u201d must only appear before any autofill field names.",
"xhtml/attributes/accesskey/003-novalid.xhtml": "Bad value \u201ca b \u306c c \u306c\u201d for attribute \u201caccesskey\u201d on element \u201ca\u201d: Bad key label list: Duplicate key label. Each key label must be unique.", "xhtml/attributes/accesskey/003-novalid.xhtml": "Bad value \u201ca b \u306c c \u306c\u201d for attribute \u201caccesskey\u201d on element \u201ca\u201d: Bad key label list: Duplicate key label. Each key label must be unique.",
"xhtml/attributes/accesskey/004-novalid.xhtml": "Bad value \u201ca b \u307b\u3052\u201d for attribute \u201caccesskey\u201d on element \u201ca\u201d: Bad key label list: Key label has multiple characters. Each key label must be a single character.", "xhtml/attributes/accesskey/004-novalid.xhtml": "Bad value \u201ca b \u307b\u3052\u201d for attribute \u201caccesskey\u201d on element \u201ca\u201d: Bad key label list: Key label has multiple characters. Each key label must be a single character.",
"xhtml/attributes/data/002-novalid.xhtml": "\u201cdata-*\u201d attributes must not have characters from the range \u201cA\u201d\u2026\u201cZ\u201d in the name.", "xhtml/attributes/data/002-novalid.xhtml": "\u201cdata-*\u201d attributes must not have characters from the range \u201cA\u201d\u2026\u201cZ\u201d in the name.",

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- address type must come before field type -->
<select autocomplete="country shipping">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- empty -->
<select autocomplete="">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,180 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is valid</title>
</head>
<body>
<select autocomplete="on"></select>
<select autocomplete="off"></select>
<!-- country -->
<select autocomplete="country">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
<select autocomplete="billing country">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
<select autocomplete="section-blue country">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
<select autocomplete="section-blue billing country">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
<!-- cc-type -->
<select autocomplete="cc-type">
<option>Visa</option>
<option>Mastercard</option>
</select>
<select autocomplete="billing cc-type">
<option>Visa</option>
<option>Mastercard</option>
</select>
<select autocomplete="section-blue cc-type">
<option>Visa</option>
<option>Mastercard</option>
</select>
<select autocomplete="section-blue billing cc-type">
<option>Visa</option>
<option>Mastercard</option>
</select>
<!-- cc-exp-month -->
<select autocomplete="cc-exp-month">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select autocomplete="billing cc-exp-month">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select autocomplete="section-blue cc-exp-month">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select autocomplete="section-blue billing cc-exp-month">
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<!-- cc-exp-year -->
<select autocomplete="cc-exp-year">
<option>2020</option>
<option>2021</option>
<option>2022</option>
</select>
<select autocomplete="billing cc-exp-year">
<option>2020</option>
<option>2021</option>
<option>2022</option>
</select>
<select autocomplete="section-blue cc-exp-year">
<option>2020</option>
<option>2021</option>
<option>2022</option>
</select>
<select autocomplete="section-blue billing cc-exp-year">
<option>2020</option>
<option>2021</option>
<option>2022</option>
</select>
<!-- tel-country-code -->
<select autocomplete="work tel-country-code">
<option>+1 US</option>
<option>+33 France</option>
<option>+44 UK</option>
<option>+81 Japan</option>
</select>
<select autocomplete="billing work tel-country-code">
<option>+1 US</option>
<option>+33 France</option>
<option>+44 UK</option>
<option>+81 Japan</option>
</select>
<select autocomplete="section-blue work tel-country-code">
<option>+1 US</option>
<option>+33 France</option>
<option>+44 UK</option>
<option>+81 Japan</option>
</select>
<select autocomplete="section-blue billing work tel-country-code">
<option>+1 US</option>
<option>+33 France</option>
<option>+44 UK</option>
<option>+81 Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<select autocomplete="country section-blue">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- unknown field type -->
<select autocomplete="qwerty">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<select autocomplete="country work">
<option>US</option>
<option>France</option>
<option>UK</option>
<option>Japan</option>
</select>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- address type must come before field type -->
<textarea autocomplete="country shipping">
</textarea>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- empty -->
<textarea autocomplete="">
</textarea>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is valid</title>
</head>
<body>
<textarea autocomplete="on"></textarea>
<textarea autocomplete="off"></textarea>
<!-- country -->
<textarea autocomplete="country">
</textarea>
<textarea autocomplete="billing country">
</textarea>
<textarea autocomplete="section-blue country">
</textarea>
<textarea autocomplete="section-blue billing country">
</textarea>
<!-- cc-type -->
<textarea autocomplete="cc-type">
</textarea>
<textarea autocomplete="billing cc-type">
</textarea>
<textarea autocomplete="section-blue cc-type">
</textarea>
<textarea autocomplete="section-blue billing cc-type">
</textarea>
<!-- cc-exp-month -->
<textarea autocomplete="cc-exp-month">
</textarea>
<textarea autocomplete="billing cc-exp-month">
</textarea>
<textarea autocomplete="section-blue cc-exp-month">
</textarea>
<textarea autocomplete="section-blue billing cc-exp-month">
</textarea>
<!-- cc-exp-year -->
<textarea autocomplete="cc-exp-year">
</textarea>
<textarea autocomplete="billing cc-exp-year">
</textarea>
<textarea autocomplete="section-blue cc-exp-year">
</textarea>
<textarea autocomplete="section-blue billing cc-exp-year">
</textarea>
<!-- tel-country-code -->
<textarea autocomplete="work tel-country-code">
</textarea>
<textarea autocomplete="billing work tel-country-code">
</textarea>
<textarea autocomplete="section-blue work tel-country-code">
</textarea>
<textarea autocomplete="section-blue billing work tel-country-code">
</textarea>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<textarea autocomplete="country section-blue">
</textarea>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- unknown field type -->
<textarea autocomplete="qwerty">
</textarea>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title>autocomplete attribute is invalid</title>
</head>
<body>
<!-- work must come before field type -->
<textarea autocomplete="country work">
</textarea>
</body>
</html>