Permalink
Browse files

Progress callbacks are not executed for cancelable deferreds

This commit is only a test case to demonstrate the issue.
  • Loading branch information...
1 parent d7d4338 commit d07edfc49bd645e32361c79e0701b450a6658f27 @scothis committed Mar 12, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/cancelable.js
View
@@ -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

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

Please sign in to comment.