Skip to content

Commit

Permalink
Progress callbacks are not executed for cancelable deferreds
Browse files Browse the repository at this point in the history
This commit is only a test case to demonstrate the issue.
  • Loading branch information
scothis committed Mar 12, 2012
1 parent d7d4338 commit d07edfc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/cancelable.js
Expand Up @@ -54,8 +54,22 @@ buster.testCase('when/cancelable', {
done(); 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);
} }

}); });


})( })(
Expand Down

1 comment on commit d07edfc

@briancavalier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.