blob: c6e98fc58abfb43abbe8cb4d29f240adffdccecb [file] [log] [blame]
<!DOCTYPE html>
<!-- Copyright 2016 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.5"/>
<title>Autofill Smoke Test</title>
<script>
var FillFormPresident = function() {
var form = document.forms['profile_form'];
form['name'].value = 'George Washington';
form['address'].value = '1600 Pennsylvania Ave NW';
form['city'].value = 'Washington';
form['state'].value = 'DC';
form['zip'].value = '20500';
}
var BasicFillForm = function(str) {
var form = document.forms['form300'];
form['n300'].value = str;
}
</script>
</head>
<h3>Profile Autofill</h3>
<form name="addr1.1" id="profile_form" action="destination.html" method="post">
Name: <input type="text" name="name" /><br />
Address: <input type="text" name="address" /><br />
City: <input type="text" name="city" /><br />
State: <select name="state">
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="NY">NY</option>
<option value="MD">MD</option>
<option value="OR">OR</option>
<option value="OH">OH</option>
<option value="IL">IL</option>
<option value="DC">DC</option>
</select> <br />
Zip: <input name="zip" id="form_zip"> <br />
<input type="reset" value="Reset" />
<input id="submit_profile" type="submit" value="Submit Profile" />
</form>
<button type="button" onclick="FillFormPresident()" id="fill_profile_president">Fill Form (President)</button>
<br />
</html>