Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10756)

Unified Diff: chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_invalid.html

Issue 11198048: [Autofill] Update the autocomplete types implementation to match the current HTML spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AutofillFieldTest expectations Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_invalid.html
diff --git a/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_invalid.html b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_invalid.html
new file mode 100644
index 0000000000000000000000000000000000000000..5ab4739a4538f56a27be664ad4fe6ed394b83a55
--- /dev/null
+++ b/chrome/test/data/autofill/heuristics/input/01_autocomplete_attribute_invalid.html
@@ -0,0 +1,86 @@
+<!-- Most of the fields in this form have invalid autocomplete attributes. -->
+<form action="autocompletetype.html" method="post">
+ <!-- Valid field (sanity check) -->
+ <input id="valid-pre-garbage" autocomplete="email"><br>
+ <!-- Garbage (a.k.a. unrecognized) tokens should cause parsing to fail. -->
+ <input autocomplete="garbage"><br>
+ <input autocomplete="garbage email"><br>
+ <input autocomplete="email garbage"><br>
+ <input autocomplete="garbage shipping email"><br>
+ <input autocomplete="shipping garbage email"><br>
+ <input autocomplete="shipping email garbage"><br>
+ <input autocomplete="garbage section-foo email"><br>
+ <input autocomplete="section-foo garbage email"><br>
+ <input autocomplete="section-foo email garbage"><br>
+ <input autocomplete="garbage work email"><br>
+ <input autocomplete="work garbage email"><br>
+ <input autocomplete="work email garbage"><br>
+ <input autocomplete="garbage section-foo shipping email"><br>
+ <input autocomplete="section-foo garbage shipping email"><br>
+ <input autocomplete="section-foo shipping garbage email"><br>
+ <input autocomplete="section-foo shipping email garbage"><br>
+ <input autocomplete="garbage section-foo shipping work email"><br>
+ <input autocomplete="section-foo garbage shipping work email"><br>
+ <input autocomplete="section-foo shipping garbage work email"><br>
+ <input autocomplete="section-foo shipping work garbage email"><br>
+ <input autocomplete="section-foo shipping work email garbage"><br>
+ <!-- Valid field (sanity check) -->
+ <input id="valid-pre-order" autocomplete="email"><br>
+ <!-- Order matters. -->
+ <input autocomplete="email work"><br>
+ <input autocomplete="email shipping"><br>
+ <input autocomplete="email section-foo"><br>
+ <input autocomplete="shipping email work"><br>
+ <input autocomplete="work shipping email"><br>
+ <input autocomplete="work email shipping"><br>
+ <input autocomplete="email shipping work"><br>
+ <input autocomplete="email work shipping"><br>
+ <input autocomplete="section-foo email work"><br>
+ <input autocomplete="work section-foo email"><br>
+ <input autocomplete="work email section-foo"><br>
+ <input autocomplete="email section-foo work"><br>
+ <input autocomplete="email work section-foo"><br>
+ <input autocomplete="shipping section-foo email"><br>
+ <input autocomplete="shipping email section-foo"><br>
+ <input autocomplete="section-foo email shipping"><br>
+ <input autocomplete="email shipping section-foo"><br>
+ <input autocomplete="email section-foo shipping"><br>
+ <input autocomplete="section-foo work email shipping"><br>
+ <input autocomplete="section-foo work shipping email"><br>
+ <input autocomplete="section-foo email shipping work"><br>
+ <input autocomplete="section-foo email work shipping"><br>
+ <input autocomplete="section-foo shipping email work"><br>
+ <input autocomplete="shipping email section-foo work"><br>
+ <input autocomplete="shipping email work section-foo"><br>
+ <input autocomplete="shipping section-foo email work"><br>
+ <input autocomplete="shipping section-foo work email"><br>
+ <input autocomplete="shipping work email section-foo"><br>
+ <input autocomplete="shipping work section-foo email"><br>
+ <input autocomplete="work email section-foo shipping"><br>
+ <input autocomplete="work email shipping section-foo"><br>
+ <input autocomplete="work section-foo email shipping"><br>
+ <input autocomplete="work section-foo shipping email"><br>
+ <input autocomplete="work shipping email section-foo"><br>
+ <input autocomplete="work shipping section-foo email"><br>
+ <input autocomplete="email section-foo shipping work"><br>
+ <input autocomplete="email section-foo work shipping"><br>
+ <input autocomplete="email shipping section-foo work"><br>
+ <input autocomplete="email shipping work section-foo"><br>
+ <input autocomplete="email work section-foo shipping"><br>
+ <input autocomplete="email work shipping section-foo"><br>
+ <!-- Valid field (sanity check) -->
+ <input id="valid-pre-repetition" autocomplete="email"><br>
+ <!-- Repeated fields should be disallowed. -->
+ <input autocomplete="email email"><br>
+ <input autocomplete="work work email"><br>
+ <input autocomplete="work home email"><br>
+ <input autocomplete="shipping billing email"><br>
+ <input autocomplete="section-foo section-bar email"><br>
+ <!-- Valid field (sanity check) -->
+ <input id="valid-pre-combinations" autocomplete="email"><br>
+ <!-- Some combinations of tokens are invalid. -->
+ <input autocomplete="on email"><br>
+ <input autocomplete="off email"><br>
+ <input autocomplete="work given-name"><br>
+ <input autocomplete="work address-line1"><br>
+</form>

Powered by Google App Engine
This is Rietveld 408576698