Skip to content

Commit 336e528

Browse files
author
Mikhail Bezoyan
committed
tests fix
1 parent 98590cd commit 336e528

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ module.exports = function (grunt) {
181181
grunt.loadTasks('./custom-tasks/');
182182

183183
// "npm build" runs these tasks
184-
grunt.registerTask('prepare', function (){
184+
grunt.registerTask('prepare-test-files', function (){
185185
if (!grunt.file.exists('tests/files/big.jpg')) {
186186
grunt.task.run('curl');
187187
}
188188
});
189-
grunt.registerTask('tests', ['jshint', 'concat', 'connect:server', 'qunit']);
189+
grunt.registerTask('tests', ['jshint', 'concat', 'connect:server','prepare-test-files', 'qunit']);
190190
grunt.registerTask('build', ['version', 'concat', 'uglify', 'mxmlc']);
191-
grunt.registerTask('default', ['prepare', 'tests', 'build']);
191+
grunt.registerTask('default', ['tests', 'build']);
192192
};

dist/FileAPI.html5.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! FileAPI 2.0.3b - BSD | git://github.com/mailru/FileAPI.git
1+
/*! FileAPI 2.0.3 - BSD | git://github.com/mailru/FileAPI.git
22
* 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.
33
*/
44

@@ -2968,7 +2968,6 @@
29682968
xhr.send(slice);
29692969
}
29702970

2971-
// xhr.send(slice);
29722971
file = slice = null;
29732972
} else {
29742973
// single piece upload

dist/FileAPI.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! FileAPI 2.0.3b - BSD | git://github.com/mailru/FileAPI.git
1+
/*! FileAPI 2.0.3 - BSD | git://github.com/mailru/FileAPI.git
22
* 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.
33
*/
44

@@ -2968,7 +2968,6 @@
29682968
xhr.send(slice);
29692969
}
29702970

2971-
// xhr.send(slice);
29722971
file = slice = null;
29732972
} else {
29742973
// single piece upload

0 commit comments

Comments
 (0)