summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2015-04-01 22:11:51 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-02 05:12:16 +0000
commitdef97be0d5af9cda83e71eb0994f596a6aa80af3 (patch)
treecf839bc622e6cc2cd835ea2a07d98a5f0514e95b /chrome/test
parentb563202b63c248fa7f3605f802d7649ae7d48562 (diff)
downloadchromium_src-def97be0d5af9cda83e71eb0994f596a6aa80af3.zip
chromium_src-def97be0d5af9cda83e71eb0994f596a6aa80af3.tar.gz
chromium_src-def97be0d5af9cda83e71eb0994f596a6aa80af3.tar.bz2
Autofill: Use field maxlength to improve credit card date matching.
BUG=471748 Review URL: https://codereview.chromium.org/1053473002 Cr-Commit-Position: refs/heads/master@{#323430}
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/autofill/heuristics/input/bug_471748.html41
-rw-r--r--chrome/test/data/autofill/heuristics/output/bug_471748.out4
2 files changed, 45 insertions, 0 deletions
diff --git a/chrome/test/data/autofill/heuristics/input/bug_471748.html b/chrome/test/data/autofill/heuristics/input/bug_471748.html
new file mode 100644
index 0000000..27b9ac3
--- /dev/null
+++ b/chrome/test/data/autofill/heuristics/input/bug_471748.html
@@ -0,0 +1,41 @@
+<div class="pay_method">
+ <h3 class="h_check">Pay with Credit Card:</h3>
+
+ <div class="saved_wrap clearfix">
+
+ </div>
+
+ <div id="fade_card">
+ <div class="cc_row card_type cf">
+ <label for="cctype">Card Type:</label>
+ <div class="cc_selwrap">
+ <div class="dropdownbox"><div class="current_selection"><span class="selection_text" title="Visa">Visa</span><span class="drop_arrow"><span></span></span></div><ul class="optionslist"><li class="option selected">Visa</li><li class="option">MasterCard</li><li class="option">American Express</li><li class="option">Discover</li></ul></div><select name="ccType" id="cctype" class="fancy_select" style="display: none;">
+ <option value="VISA" selected="">Visa</option>
+ <option value="MASTERCARD">MasterCard</option>
+ <option value="AMEX">American Express</option>
+ <option value="DISCOVER">Discover</option>
+ </select>
+ </div>
+ <div class="cc_iconwrap">
+ <span class="cc_icon ic_visa selected">Visa</span>
+ <span class="cc_icon ic_mc">MasterCard</span>
+ <span class="cc_icon ic_ae">American Express</span>
+ <span class="cc_icon ic_disc">Discover</span>
+ </div>
+ </div>
+ <div class="cc_row cc_num">
+ <label for="cardnum">Card #:</label>
+ <input type="text" name="cardnum" id="cardnum" maxlength="19" class="check_text">
+ </div>
+ <div class="cc_row">
+ <label for="expdate">Expire Date:</label>
+ <input type="text" name="expdate" id="expdate" maxlength="5" class="check_text">
+ <span>MM/YY</span>
+ </div>
+ <div class="cc_row">
+ <label for="cvv2">CCV2:</label>
+ <input type="text" name="cvv2" id="cvv2" maxlength="4" class="check_text">
+ <a href="https://www.runningwarehouse.com/cvv2.html#cvv2_info" class="lightboxpop" data-boxheight="375" data-boxwidth="500">what's this?</a>
+ </div>
+ </div>
+</div>
diff --git a/chrome/test/data/autofill/heuristics/output/bug_471748.out b/chrome/test/data/autofill/heuristics/output/bug_471748.out
new file mode 100644
index 0000000..6aa4821
--- /dev/null
+++ b/chrome/test/data/autofill/heuristics/output/bug_471748.out
@@ -0,0 +1,4 @@
+CREDIT_CARD_TYPE | ccType | VisaVisaMasterCardAmerican ExpressDiscover | VISA | ccType_1-cc
+CREDIT_CARD_NUMBER | cardnum | Card #: | | ccType_1-cc
+CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR | expdate | Expire Date: | | ccType_1-cc
+CREDIT_CARD_VERIFICATION_CODE | cvv2 | CCV2: | | ccType_1-cc