summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/select
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/select')
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-address-novalid.html20
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-empty-novalid.html20
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-isvalid.html180
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-section-novalid.html20
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-token-novalid.html20
-rw-r--r--testing/web-platform/tests/conformance-checkers/select/autocomplete-work-novalid.html20
6 files changed, 280 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-address-novalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-address-novalid.html
new file mode 100644
index 0000000000..7e4087ab37
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-address-novalid.html
@@ -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>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-empty-novalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-empty-novalid.html
new file mode 100644
index 0000000000..a45757df2d
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-empty-novalid.html
@@ -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>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-isvalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-isvalid.html
new file mode 100644
index 0000000000..065b764b3d
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-isvalid.html
@@ -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>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-section-novalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-section-novalid.html
new file mode 100644
index 0000000000..084fc2c917
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-section-novalid.html
@@ -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>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-token-novalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-token-novalid.html
new file mode 100644
index 0000000000..267c4d40c2
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-token-novalid.html
@@ -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>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/select/autocomplete-work-novalid.html b/testing/web-platform/tests/conformance-checkers/select/autocomplete-work-novalid.html
new file mode 100644
index 0000000000..c26b4f8531
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/select/autocomplete-work-novalid.html
@@ -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>
+
+