~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Tools/TestWebKitAPI/Tests/WebKit2/auto-submitting-form.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
    <head>
 
3
        <script>
 
4
            function submitFormIfNecessary()
 
5
            {
 
6
                if (window.location.search)
 
7
                    return;
 
8
                document.forms[0].submit.click();
 
9
            }
 
10
        </script>
 
11
    </head>
 
12
    <body onload="submitFormIfNecessary()">
 
13
        <form action="#" method="GET">
 
14
            <input type="text" name="textField" value="text field">
 
15
            <input type="password" name="passwordField" value="password field">
 
16
            <input type="hidden" name="hiddenField" value="hidden field">
 
17
            <input type="submit" name="submit">
 
18
        </form>
 
19
    </body>
 
20
</html>