Skip to content

Commit d25bc8e

Browse files
committed
Simplify sequentialUploads test.
Depending on the timing of file adding and upload completion, stop and start events might occur in sequence steps.
1 parent 26672df commit d25bc8e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/unit.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,6 @@
774774
form.fileupload({
775775
sequentialUploads: true,
776776
dataType: 'json',
777-
start: function() {
778-
events.push('start');
779-
},
780777
send: function() {
781778
events.push('send');
782779
},
@@ -785,20 +782,17 @@
785782
completed++;
786783
},
787784
stop: function() {
788-
events.push('stop');
789785
if (completed === 4) {
790786
expect(events.join(',')).to.equal(
791787
[
792-
'start',
793788
'send',
794789
'complete',
795790
'send',
796791
'complete',
797792
'send',
798793
'complete',
799794
'send',
800-
'complete',
801-
'stop'
795+
'complete'
802796
].join(',')
803797
);
804798
done();

0 commit comments

Comments
 (0)