| Index: chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
|
| diff --git a/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5b5da7f3d72d5b16feb21308b644e4f02ff91762
|
| --- /dev/null
|
| +++ b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_advanced.html
|
| @@ -0,0 +1,33 @@
|
| +<!-- Whitespace should be trimmed; case should be normalized. -->
|
| +<form action="autocompletetype.html" method="post">
|
| + <input id="1.n" autocomplete=" NAME "><br>
|
| + <input id="1.e" autocomplete=" WoRk eMaIl"><br>
|
| + <input id="1.a" autocomplete=" SECTION-one SHIPping street-address "><br>
|
| +</form>
|
| +
|
| +<!-- The presence of at least one type hint should disable all other forms of
|
| + heuristics. -->
|
| +<form action="autocompletetype.html" method="post">
|
| + <input id="2.name"><br>
|
| + <input id="2.email"><br>
|
| + <input id="2.t" autocomplete="tel"><br>
|
| + <input id="2.address"><br>
|
| +</form>
|
| +
|
| +<!-- This is true even if the attribute value is invalid. -->
|
| +<form action="autocompletetype.html" method="post">
|
| + <input id="3.name"><br>
|
| + <input id="3.email"><br>
|
| + <input id="3.o" autocomplete="other"><br>
|
| + <input id="3.address"><br>
|
| +</form>
|
| +
|
| +<!-- But special values like "on" or "off" should have no effect. -->
|
| +<form action="autocompletetype.html" method="post">
|
| + <input id="4.phone"><br>
|
| + <input id="4.email"><br>
|
| + <input id="4.a" autocomplete="on"><br>
|
| + <input id="4.b" autocomplete="oFf "><br>
|
| + <input id="4.c" autocomplete=""><br>
|
| + <input id="4.city"><br>
|
| +</form>
|
|
|