Home | History | Annotate | Download | only in ManualTests
      1 <html>
      2     <head>
      3         <script type="text/javascript">
      4             var submittedFiles = 0;
      5             
      6             function log(message)
      7             {
      8                 document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
      9             }
     10             
     11             function verifyResults()
     12             {
     13                 if (submittedFiles == 3) {
     14                     var frame = document.getElementById('fr');
     15                     frame.parentNode.removeChild(frame);
     16                     log("Test Passed");
     17                 } else
     18                     log("Test Failed");
     19             }
     20         </script>
     21     </head>
     22     <body onload="test()">
     23         <p>
     24         This tests that the multi-file upload control works correctly.  This test and the resources/multiFileResources must be placed on a web server so the test can be run manually.<br>
     25         Choose "testFile1.html" "testFile2.html" and "testFile3.html" and submit the form. <br>
     26         You should see a "Test Passed" or a "Test Failed" message after submitting the form.<br>
     27         </p>
     28         <form method="post" enctype="multipart/form-data" action="resources/multiFileResources/post-echo-and-notify-done.cgi" id="myForm" target="targetFrame">
     29             <input type="file" id="target" multiple name="multiFileInput"></input>
     30             <input type="submit" value="Submit">
     31         </form>
     32         <iframe name="targetFrame" id="fr"></iframe>
     33         <pre id='console'></pre>
     34     </body>
     35 </html>
     36