-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1349489 - Part 2: Add test fixtures for autofill field name heuri…
…stics.; r=MattN MozReview-Commit-ID: IuvSEpSHVtK --HG-- extra : rebase_source : b763eba5ea36744f9b05149d42b6d5680e0843e8
- Loading branch information
Showing
50 changed files
with
11,714 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
browser/extensions/formautofill/test/fixtures/autocomplete_basic.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Form Autofill Demo Page</title> | ||
</head> | ||
<body> | ||
<h1>Form Autofill Demo Page</h1> | ||
<form id="form"> | ||
<p><label>organization: <input type="text" id="organization" name="organization" autocomplete="organization" /></label></p> | ||
<p><label>streetAddress: <input type="text" id="street-address" name="street-address" autocomplete="street-address" /></label></p> | ||
<p><label>addressLevel2: <input type="text" id="address-level2" name="address-level2" autocomplete="address-level2" /></label></p> | ||
<p><label>addressLevel1: <input type="text" id="address-level1" name="address-level1" autocomplete="address-level1" /></label></p> | ||
<p><label>postalCode: <input type="text" id="postal-code" name="postal-code" autocomplete="postal-code" /></label></p> | ||
<p><label>country: <input type="text" id="country" name="country" autocomplete="country" /></label></p> | ||
<p><label>tel: <input type="text" id="tel" name="tel" autocomplete="tel" /></label></p> | ||
<p><label>email: <input type="text" id="email" name="email" autocomplete="email" /></label></p> | ||
<p><input type="submit" /></p> | ||
<p><button type="reset">Reset</button></p> | ||
</form> | ||
</body> | ||
</html> | ||
|
283 changes: 283 additions & 0 deletions
283
browser/extensions/formautofill/test/fixtures/third_party/BestBuy/Checkout_Payment.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Checkout – Best Buy</title> | ||
</head> | ||
<body> | ||
<form name="frmSearch" action="https://www.bestbuy.com/site/searchpage.jsp" method="GET"> | ||
<input type="text" value="" name="st" maxlength="90" placeholder="Search Best Buy" id="gh-search-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"> | ||
<input type="hidden" value="UTF-8" name="_dyncharset"> | ||
<input type="hidden" value="pcat17071" name="id"> | ||
<input type="hidden" value="page" name="type"> | ||
<input type="hidden" value="Global" name="sc"> | ||
<input type="hidden" value="1" name="cp"> | ||
<input type="hidden" value="" name="nrp"> | ||
<input type="hidden" value="" name="sp"> | ||
<input type="hidden" value="" name="qp"> | ||
<input type="hidden" value="n" name="list"> | ||
<input type="hidden" value="true" name="af"> | ||
<input type="hidden" value="y" name="iht"> | ||
<input type="hidden" value="All Categories" name="usc"> | ||
<input type="hidden" value="960" name="ks"> | ||
<input type="hidden" id="keys" value="keys" name="keys"> | ||
</form> | ||
<form action="https://www-ssl.bestbuy.com/site/olspage.jsp?id=pcat17009&type=page&fastTrack=true" id="footer-email-form"> | ||
<label for="footerEmailSignup">GET THE LATEST DEALS & MORE</label> | ||
<input type="text" id="footerEmailSignup" name="email" placeholder="Enter E-Mail Address"> | ||
<input type="submit" value="Sign Up" | ||
title="Sign Up"> | ||
</form> | ||
<form action="javascript://"> | ||
<div> | ||
<label for="fulfillment.fulfillmentGroups.0.fulfillment.address.firstName"> | ||
<span> | ||
<p>First Name</p> | ||
</span> | ||
<div> | ||
<input type="text" id="fulfillment.fulfillmentGroups.0.fulfillment.address.firstName" name="firstName" maxlength="29" value="Tester"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="fulfillment.fulfillmentGroups.0.fulfillment.address.lastName"> | ||
<span> | ||
<p>Last Name</p> | ||
</span> | ||
<div> | ||
<input type="text" id="fulfillment.fulfillmentGroups.0.fulfillment.address.lastName" name="lastName" maxlength="30" value="Mo"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="fulfillment.fulfillmentGroups.0.fulfillment.address.street"> | ||
<span> | ||
<p>Address</p> | ||
</span> | ||
<div> | ||
<input type="text" id="fulfillment.fulfillmentGroups.0.fulfillment.address.street" name="street" maxlength="35" value="331 E EVELYN AVE"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label id="fulfillment.fulfillmentGroups.0.fulfillment.address.city" for="fulfillment.fulfillmentGroups.0.fulfillment.address.city"> | ||
<span> | ||
<p>City</p> | ||
</span> | ||
<div> | ||
<input type="text" id="fulfillment.fulfillmentGroups.0.fulfillment.address.city" name="city" maxlength="30" value="MOUNTAIN VIEW"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="fulfillment.fulfillmentGroups.0.fulfillment.address.state"> | ||
<span> | ||
<p>State</p> | ||
</span> | ||
<div> | ||
<select id="fulfillment.fulfillmentGroups.0.fulfillment.address.state" name="state"> | ||
<option value="">Select a state</option> | ||
<option value="AL">AL - Alabama</option> | ||
<option value="AK">AK - Alaska</option> | ||
<option value="AP">AP - Armed Forces Pacific</option> | ||
<option value="AE">AE - Armed Force Europe</option> | ||
<option value="AA">AA - Armed Forces America</option> | ||
<option value="AZ">AZ - Arizona</option> | ||
<option value="AR">AR - Arkansas</option> | ||
<option value="CA">CA - California</option> | ||
<option value="CO">CO - Colorado</option> | ||
<option value="CT">CT - Connecticut</option> | ||
<option value="DC">DC - Washington D.C.</option> | ||
<option value="DE">DE - Delaware</option> | ||
<option value="FL">FL - Florida</option> | ||
<option value="GA">GA - Georgia</option> | ||
<option value="GU">GU - Guam</option> | ||
<option value="HI">HI - Hawaii</option> | ||
<option value="ID">ID - Idaho</option> | ||
<option value="IL">IL - Illinois</option> | ||
<option value="IN">IN - Indiana</option> | ||
<option value="IA">IA - Iowa</option> | ||
<option value="KS">KS - Kansas</option> | ||
<option value="KY">KY - Kentucky</option> | ||
<option value="LA">LA - Louisiana</option> | ||
<option value="ME">ME - Maine</option> | ||
<option value="MD">MD - Maryland</option> | ||
<option value="MA">MA - Massachusetts</option> | ||
<option value="MI">MI - Michigan</option> | ||
<option value="MN">MN - Minnesota</option> | ||
<option value="MS">MS - Mississippi</option> | ||
<option value="MO">MO - Missouri</option> | ||
<option value="MT">MT - Montana</option> | ||
<option value="NE">NE - Nebraska</option> | ||
<option value="NV">NV - Nevada</option> | ||
<option value="NH">NH - New Hampshire</option> | ||
<option value="NJ">NJ - New Jersey</option> | ||
<option value="NM">NM - New Mexico</option> | ||
<option value="NY">NY - New York</option> | ||
<option value="NC">NC - North Carolina</option> | ||
<option value="ND">ND - North Dakota</option> | ||
<option value="OH">OH - Ohio</option> | ||
<option value="OK">OK - Oklahoma</option> | ||
<option value="OR">OR - Oregon</option> | ||
<option value="PA">PA - Pennsylvania</option> | ||
<option value="RI">RI - Rhode Island</option> | ||
<option value="SC">SC - South Carolina</option> | ||
<option value="SD">SD - South Dakota</option> | ||
<option value="TN">TN - Tennessee</option> | ||
<option value="TX">TX - Texas</option> | ||
<option value="UT">UT - Utah</option> | ||
<option value="VT">VT - Vermont</option> | ||
<option value="VA">VA - Virginia</option> | ||
<option value="VI">VI - Virgin Islands</option> | ||
<option value="WA">WA - Washington</option> | ||
<option value="WV">WV - West Virginia</option> | ||
<option value="WI">WI - Wisconsin</option> | ||
<option value="WY">WY - Wyoming</option> | ||
</select> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="fulfillment.fulfillmentGroups.0.fulfillment.address.zipcode"> | ||
<span> | ||
<p>ZIP Code</p> | ||
</span> | ||
<div> | ||
<input type="tel" id="fulfillment.fulfillmentGroups.0.fulfillment.address.zipcode" name="zipcode" maxlength="5" value="94041"> | ||
</div> | ||
</label> | ||
</div> | ||
</form> | ||
<div role="search"> | ||
<div id="app"> | ||
<div> | ||
<div> | ||
<div> | ||
<div> | ||
<section> | ||
<div> | ||
<div> | ||
<section> | ||
<section> | ||
<div> | ||
<ul> | ||
<li> | ||
<label for="ispu-fulfillmentci779178028329"> | ||
<div> | ||
<input type="radio" id="ispu-fulfillmentci779178028329" name="fulfillment-options-list__radio_0" value="on"> | ||
<i> | ||
</i> | ||
</div> | ||
<strong> | ||
<span>Tomorrow</span> | ||
<span> | ||
<p> at a Best Buy store</p> | ||
</span> | ||
</strong> | ||
<div> | ||
<span> | ||
<p>Store pick ups are usually ready within one hour and held for up to 8 days</p> | ||
</span> | ||
</div> | ||
</label> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<ul> | ||
<li> | ||
<label for="0losTwo Day"> | ||
<div> | ||
<input type="radio" id="0losTwo Day" name="fulfillment-options-list__radio_0" value="on"> | ||
<i> | ||
</i> | ||
</div> | ||
<strong> | ||
<span>Wed, Mar 22</span> | ||
</strong>- Two Day Shipping | ||
</label> | ||
</li> | ||
<li> | ||
<label for="0losOne Day"> | ||
<div> | ||
<input type="radio" id="0losOne Day" name="fulfillment-options-list__radio_0" value="on"> | ||
<i> | ||
</i> | ||
</div> | ||
<strong> | ||
<span>Tue, Mar 21</span> | ||
</strong>- One Day Shipping | ||
</label> | ||
</li> | ||
<li> | ||
<label for="0losSame Day"> | ||
<div> | ||
<input type="radio" id="0losSame Day" name="fulfillment-options-list__radio_0" value="on"> | ||
<i> | ||
</i> | ||
</div> | ||
<strong> | ||
<span>Tomorrow</span> | ||
</strong>- Same Day Shipping | ||
</label> | ||
</li> | ||
</ul> | ||
</div> | ||
</section> | ||
<section> | ||
<label for="save-for-billing-address-0"> | ||
<div> | ||
<input type="checkbox" id="save-for-billing-address-0" value="on"> | ||
<i> | ||
</i> | ||
</div> | ||
<span> | ||
<p>Save this as my billing address</p> | ||
</span> | ||
</label> | ||
</section> | ||
</section> | ||
</div> | ||
<div> | ||
<section> | ||
<div> | ||
<label for="user.emailAddress"> | ||
<span> | ||
<p>E-mail Address</p> | ||
</span> | ||
<div> | ||
<input id="user.emailAddress" name="emailAddress" value="[email protected]"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="user.phone"> | ||
<span> | ||
<p>Phone Number</p> | ||
</span> | ||
<div> | ||
<input type="tel" id="user.phone" name="phone" maxlength="12" value="732 222 3232"> | ||
</div> | ||
</label> | ||
</div> | ||
<div> | ||
<label for="text-updates"> | ||
<div> | ||
<input type="checkbox" id="text-updates" value="on"> | ||
</div> | ||
<span> | ||
<p>Send me text notifications for my order</p> | ||
</span> | ||
</label> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.