fix imageSmoothingEnabled on resize. fix #884

This commit is contained in:
Anton Lavrenov
2020-04-07 12:47:22 -05:00
parent 1427cf0efc
commit 865d6c7618
7 changed files with 23 additions and 34 deletions

View File

@@ -416,6 +416,11 @@ suite('Layer', function() {
assert.equal(layer.getContext().imageSmoothingEnabled, true);
layer.imageSmoothingEnabled(false);
// change size
stage.width(stage.width() + 1);
assert.equal(layer.getContext().imageSmoothingEnabled, false);
done();
};
imageObj.src = 'assets/darth-vader.jpg';