Permalink
Browse files

tests fix

  • Loading branch information...
1 parent 98590cd commit 336e528cb478f34585ea79c668e6798dc3d19aae Mikhail Bezoyan committed Feb 4, 2014
Showing with 5 additions and 7 deletions.
  1. +3 −3 Gruntfile.js
  2. +1 −2 dist/FileAPI.html5.js
  3. +1 −2 dist/FileAPI.js
View
@@ -181,12 +181,12 @@ module.exports = function (grunt) {
grunt.loadTasks('./custom-tasks/');
// "npm build" runs these tasks
- grunt.registerTask('prepare', function (){
+ grunt.registerTask('prepare-test-files', function (){
if (!grunt.file.exists('tests/files/big.jpg')) {
grunt.task.run('curl');
}
});
- grunt.registerTask('tests', ['jshint', 'concat', 'connect:server', 'qunit']);
+ grunt.registerTask('tests', ['jshint', 'concat', 'connect:server','prepare-test-files', 'qunit']);
grunt.registerTask('build', ['version', 'concat', 'uglify', 'mxmlc']);
- grunt.registerTask('default', ['prepare', 'tests', 'build']);
+ grunt.registerTask('default', ['tests', 'build']);
};
View
@@ -1,4 +1,4 @@
-/*! FileAPI 2.0.3b - BSD | git://github.com/mailru/FileAPI.git
+/*! FileAPI 2.0.3 - BSD | git://github.com/mailru/FileAPI.git
* FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF.
*/
@@ -2968,7 +2968,6 @@
xhr.send(slice);
}
-// xhr.send(slice);
file = slice = null;
} else {
// single piece upload
View
@@ -1,4 +1,4 @@
-/*! FileAPI 2.0.3b - BSD | git://github.com/mailru/FileAPI.git
+/*! FileAPI 2.0.3 - BSD | git://github.com/mailru/FileAPI.git
* FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF.
*/
@@ -2968,7 +2968,6 @@
xhr.send(slice);
}
-// xhr.send(slice);
file = slice = null;
} else {
// single piece upload

0 comments on commit 336e528

Please sign in to comment.