mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Merge pull request #36 from adroitwhiz/fix-smoothing-test
Fix raster smoothing test
This commit is contained in:
commit
a187e4c81c
1 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue