Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: third_party/webdriver/test_data/upload.html

Issue 424363004: Update third_party/webdriver/pylib to r18456 and delete test_data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "python" -> "pylib" Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Upload Form</title>
5 <script>
6 var intervalId;
7 function onTick() {
8 var label = document.getElementById('upload_label');
9 label.innerHTML += '.';
10 }
11
12 function onUploadSubmit() {
13 document.getElementById('upload_target').contentWindow.document.body.
14 innerHTML = '';
15 var label = document.getElementById('upload_label');
16 label.innerHTML = 'Uploading "' + document.forms[0].upload.value + '"';
17 label.style.display = '';
18 intervalId = window.setInterval(onTick, 500);
19 return true;
20 }
21
22 function onUploadDone() {
23 var label = document.getElementById('upload_label');
24 label.style.display = 'none';
25 window.clearInterval(intervalId);
26 return true;
27 }
28 </script>
29 </head>
30 <body>
31 <form action="/common/upload" method="post" name="upload_form"
32 target="upload_target" enctype="multipart/form-data"
33 onsubmit="onUploadSubmit();">
34 <div>
35 Enter a file to upload:
36 <div><input id="upload" name="upload" type="file"/></div>
37 <div><input id="go" type="submit" value="Go!"/></div>
38 </div>
39 <div id="upload_label" style="display:none"></div>
40 <iframe src="" id="upload_target" name="upload_target"
41 style="width:300px;height:200px">
42 </iframe>
43 </form>
44 </body>
45 </html>
OLDNEW
« no previous file with comments | « third_party/webdriver/test_data/underscore.html ('k') | third_party/webdriver/test_data/veryLargeCanvas.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698