2 <form method="post" action="mailto:nobody@gmail.com">
3 Field 1: <input type="text" size="10" maxlength="40" name="field1" value="value 1">
4 Field 2: <input type="text" size="10" maxlength="40" name="field2" value="value 2">
5 <input type="submit" value="Send">
7 <div>Expected results when clicking "Send" button: A new mail message is created with a body of "field1=value 1&field2=value 2".</div>
10 if (window.layoutTestController) {
11 layoutTestController.dumpAsText();
12 layoutTestController.waitForPolicyDelegate();
13 document.getElementsByTagName("form")[0].submit();