blob: 8cfb4ee7b7e49ac5e2ef6e0ce09684615dd21b43 [file] [log] [blame]
<body onload="test()">
<form method="post" action="mailto:nobody@gmail.com">
Field 1: <input type="text" size="10" maxlength="40" name="field1" value="value 1">
Field 2: <input type="text" size="10" maxlength="40" name="field2" value="value 2">
<input type="submit" value="Send">
</form>
<div>Expected results when clicking "Send" button: A new mail message is created with a body of "field1=value 1&field2=value 2".</div>
<script>
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitForPolicyDelegate();
document.getElementsByTagName("form")[0].submit();
}
}
</script>