aboutsummaryrefslogtreecommitdiffstats
path: root/addon/js_upload/file-uploader/tests/test-handler-queue.htm
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-25 01:59:14 -0700
committerFriendika <info@friendika.com>2011-09-25 01:59:14 -0700
commit4846d114a84b0c7da64501ea89a635d24e403a1d (patch)
tree565923c7932ef7fffa4e22482fce48ddb9f133e4 /addon/js_upload/file-uploader/tests/test-handler-queue.htm
parent6a9e22550d82595c4341290ca26e3afc5fe6300f (diff)
downloadvolse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.tar.gz
volse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.tar.bz2
volse-hubzilla-4846d114a84b0c7da64501ea89a635d24e403a1d.zip
project fork
Diffstat (limited to 'addon/js_upload/file-uploader/tests/test-handler-queue.htm')
-rw-r--r--addon/js_upload/file-uploader/tests/test-handler-queue.htm81
1 files changed, 0 insertions, 81 deletions
diff --git a/addon/js_upload/file-uploader/tests/test-handler-queue.htm b/addon/js_upload/file-uploader/tests/test-handler-queue.htm
deleted file mode 100644
index 52e3b3a58..000000000
--- a/addon/js_upload/file-uploader/tests/test-handler-queue.htm
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <script src="jquery-1.4.2.min.js" type="text/javascript"></script>
-
- <link href="qunit/qunit/qunit.css" rel="stylesheet" type="text/css" media="screen" />
- <script src="qunit/qunit/qunit.js" type="text/javascript"></script>
-
- <script src="../client/fileuploader.js" type="text/javascript" ></script>
- <script>
-jQuery(function(){
-
- function getHandler(){
- if(qq.UploadHandlerXhr.isSupported()){
- return qq.UploadHandlerXhr;
- } else {
- return qq.UploadHandlerForm;
- }
- }
-
- asyncTest("upload", function() {
- expect(2);
-
- var data = {stringOne: 'rtdfghdfhfh',stringTwo: 'dfsgsdfgsdg',stringThree: 'dfsgfhdfhdg'};
- var savedId;
-
- var uploadHandler = new (getHandler())({
- action: 'action-handler-queue-test.php',
- maxConnections: 1,
- onComplete: function(id, fileName, response){
- if (!response.success){
- ok(false, 'server did not receive file')
- return;
- }
-
- delete response.success;
- delete response.qqfile;
-
- same(response, data, 'server received file and data');
- }
- });
-
-
- $('#testinput1, #testinput2').change(upload);
-
- function upload(){
- setTimeout(start, 9000);
-
- var file = this;
- if (uploadHandler instanceof qq.UploadHandlerXhr){
- file = this.files[0];
- }
- var id = uploadHandler.add(file);
- uploadHandler.upload(id, data);
- }
-
-
- });
-});
- </script>
-</head>
-<body>
- <h1 id="qunit-header">File uploader tests</h1>
- <h2 id="qunit-banner"></h2>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
-
-
- <p>
- Please select a file for each input below,
- should be less than 4 sec, between selection.
- </p>
-
-
- <input id="testinput1" type="file">
- <input id="testinput2" type="file">
-
-</body>
-</html>
-
-