Merge pull request #36 from adroitwhiz/fix-smoothing-test

Fix raster smoothing test
This commit is contained in:
adroitwhiz 2020-05-18 13:58:50 -04:00 committed by GitHub
commit a187e4c81c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,17 +180,17 @@ test('Raster#getAverageColor(path) with compound path', function() {
{ tolerance: 1e-3 }); { tolerance: 1e-3 });
}); });
test('Raster#smoothing defaults to true', function() { test('Raster#smoothing defaults to false', function() {
var raster = new Raster(); var raster = new Raster();
equals(raster.smoothing, true); equals(raster.smoothing, false);
}); });
test('Raster#smoothing', function() { test('Raster#smoothing', function() {
var raster = new Raster({ smoothing: false }); var raster = new Raster({ smoothing: true });
equals(raster.smoothing, false);
raster.smoothing = true;
equals(raster.smoothing, true); equals(raster.smoothing, true);
raster.smoothing = false;
equals(raster.smoothing, false);
}); });
test('Raster#setSmoothing setting does not impact canvas context', function(assert) { test('Raster#setSmoothing setting does not impact canvas context', function(assert) {