Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for the failing uploader test; no code changes

  • Loading branch information...
commit aae871dc3f1d34aca56e3b9f156aad13a2e56824 1 parent 1ab83cb
@allenrabinovich allenrabinovich authored
Showing with 12 additions and 11 deletions.
  1. +12 −11 src/uploader/tests/unit/uploaderhtml5.html
View
23 src/uploader/tests/unit/uploaderhtml5.html
@@ -87,6 +87,18 @@
var e = new Y.DOMEventFacade({type:'dragenter', preventDefault: function () {}, stopPropagation: function () {}});
+ Y.FileHTML5.prototype.isValidFile = function () { return true; };
+ Y.FileHTML5.prototype.canUpload = function () { return true; };
+
+ var filearray = [];
+
+ for (var i = 0; i <= 10; i++) {
+ filearray.push({name: i + ".jpg", size: i*1000, type: "jpg"});
+ }
+
+ e._event.dataTransfer = {files: filearray};
+ e._event.dataTransfer.types = ["Files"];
+
this.basicuploader._ddEventHandler(e);
e.type = 'dragleave';
@@ -99,17 +111,6 @@
e.type = 'drop';
- Y.FileHTML5.prototype.isValidFile = function () { return true; };
- Y.FileHTML5.prototype.canUpload = function () { return true; };
-
- var filearray = [];
-
- for (var i = 0; i <= 10; i++) {
- filearray.push({name: i + ".jpg", size: i*1000, type: "jpg"});
- }
-
- e._event.dataTransfer = {files: filearray};
-
this.basicuploader._ddEventHandler(e);
},
Please sign in to comment.
Something went wrong with that request. Please try again.