1 | <!DOCTYPE html>
|
2 | <html xmlns="http://www.w3.org/1999/html">
|
3 | <head>
|
4 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
6 |
|
7 | <title>FileAPI :: Tests</title>
|
8 |
|
9 | <script>
|
10 | var isPhantomJS = /phantomjs/i.test(navigator.userAgent);
|
11 | var FileAPI = {
|
12 | html5: true
|
13 | , debug: !isPhantomJS
|
14 | , staticPath: '../dist/'
|
15 | , formData: !isPhantomJS
|
16 | };
|
17 | </script>
|
18 |
|
19 | <script src="../dist/FileAPI.js"></script>
|
20 | <script src="../plugins/FileAPI.id3.js"></script>
|
21 | <script src="../plugins/FileAPI.exif.js"></script>
|
22 | <script>document.addEventListener && document.write('<script src="../plugins/caman.full.min.js"><'+'/script>');</script>
|
23 |
|
24 | <link rel="stylesheet" href="./qunit/qunit.css"/>
|
25 | </head>
|
26 | </body>
|
27 |
|
28 | <div id="qunit"></div>
|
29 |
|
30 | <input id="startBtn" type="button" value=" START " style="font-size: 20px;" />
|
31 |
|
32 | <div xid="qunit-fixture" style="margin: 30px;">
|
33 | <div id="web-cam" style="width: 320px; height: 240px; float: right;"></div>
|
34 |
|
35 | <form name="upload">
|
36 | <div class="js-fileapi-wrapper">1px.gif -- <input name="1px_gif" type="file" /></div>
|
37 | <div class="js-fileapi-wrapper">big.jpg -- <input name="big.jpg" type="file" /></div>
|
38 | <div class="js-fileapi-wrapper">hello.txt -- <input name="hello.txt" type="file" /></div>
|
39 | <div class="js-fileapi-wrapper">image.jpg -- <input name="image.jpg" type="file" /></div>
|
40 | <div class="js-fileapi-wrapper">dino.png -- <input name="dino.png" type="file" /></div>
|
41 | <div class="js-fileapi-wrapper">multiple -- <input name="multiple" multiple type="file" /></div>
|
42 | </form>
|
43 | </div>
|
44 |
|
45 |
|
46 | <script src="./qunit/qunit.js"></script>
|
47 | <script src="tests.js"></script>
|
48 |
|
49 | </body>
|
50 | </html>
|