Let plugins avoid sending comments when replying
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=705511 Change-Id: Ie0ab13d3b99ae008376353dce0702e1597edd1b8
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
this._el.setLabelValue(label, value);
|
||||
};
|
||||
|
||||
GrChangeReplyInterface.prototype.send = function() {
|
||||
return this._el.send();
|
||||
GrChangeReplyInterface.prototype.send = function(opt_includeComments) {
|
||||
return this._el.send(opt_includeComments);
|
||||
};
|
||||
|
||||
window.GrChangeReplyInterface = GrChangeReplyInterface;
|
||||
|
||||
@@ -66,8 +66,8 @@ limitations under the License.
|
||||
assert(setLabelValueStub.calledWithExactly('My-Label', '+1337'));
|
||||
|
||||
var sendStub = sinon.stub(element, 'send');
|
||||
changeReply.send();
|
||||
assert(sendStub.calledWithExactly());
|
||||
changeReply.send(false);
|
||||
assert(sendStub.calledWithExactly(false));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user