File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11561156 * @param {Event } event
11571157 */
11581158 this . testHandler = function ( event ) {
1159- var status = $ . status ( ) ;
1159+ var status = $ . status ( true ) ;
11601160 if ( status === 'error' ) {
11611161 $ . event ( status , $ . message ( ) ) ;
11621162 $ . flowObj . uploadNextChunk ( ) ;
13151315 * @function
13161316 * @returns {string } 'pending', 'uploading', 'success', 'error'
13171317 */
1318- status : function ( ) {
1318+ status : function ( isTest ) {
13191319 if ( this . pendingRetry || this . preprocessState === 1 ) {
13201320 // if pending retry then that's effectively the same as actively uploading,
13211321 // there might just be a slight delay before the retry starts
13321332 // HTTP 202 Accepted - The request has been accepted for processing, but the processing has not been completed.
13331333 return 'success' ;
13341334 } else if ( this . flowObj . opts . permanentErrors . indexOf ( this . xhr . status ) > - 1 ||
1335- this . retries && this . retries >= this . flowObj . opts . maxChunkRetries ) {
1335+ ! isTest && this . retries >= this . flowObj . opts . maxChunkRetries ) {
13361336 // HTTP 415/500/501, permanent error
13371337 return 'error' ;
13381338 } else {
You can’t perform that action at this time.
0 commit comments