Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Progress callbacks are not executed for cancelable deferreds

This commit is only a test case to demonstrate the issue.
  • Loading branch information...
commit d07edfc49bd645e32361c79e0701b450a6658f27 1 parent d7d4338
@scothis authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/cancelable.js
View
14 test/cancelable.js
@@ -54,8 +54,22 @@ buster.testCase('when/cancelable', {
done();
}
);
+ },
+ 'should propagate the unaltered progress value': function(done) {
+ var nonce = {},
+ c = cancelable(when.defer());
+ c.then(
+ null,
+ null,
+ function(status){
+ assert.same(nonce, status);
+ done();
+ }
+ );
+ c.progress(nonce);
}
+
});
})(

1 comment on commit d07edfc

@briancavalier

Thanks for the test case! I'll look into it within the next day.

Please sign in to comment.
Something went wrong with that request. Please try again.