Commit graph

19 commits

Author SHA1 Message Date
Jürg Lehni
e95e17826e Start cleaning up unit tests by introducing new class/type-based comparators lookup table. 2014-12-28 14:33:22 +01:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
a1c74b8fd3 Explicitly state raster resolution in unit tests.
Since #rasterize() uses the HiDPI resolution if present now.
2014-03-18 11:20:50 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
cc565b3fe2 Rename Raster#getSubImage() to #getSubCanvas(), and use insert: false combined with #insertAbove() to correctly insert newly created rasters. 2013-08-14 12:21:47 -07:00
Jürg Lehni
d1c6b7134f Fix Raster#getAverageColor() to work with new transforms history code. 2013-04-18 16:50:18 -07:00
Jürg Lehni
495eef2ee4 Fix issue with precision and PathItem#getAverageColor() tests. 2013-04-09 08:40:41 -07:00
Jürg Lehni
e7c6bf3d9b Fix more Color tests. 2013-04-08 07:27:30 -07:00
Jürg Lehni
8292112ecd More work on Color and testing. 2013-04-08 07:07:41 -07:00
Jürg Lehni
0aa6c66681 Start refactoring Color tests. 2013-04-08 00:19:47 -07:00
Jürg Lehni
232ea221b4 First batch of large Color refactoring and simplification.
Work in progress.
2013-04-07 10:03:51 -07:00
Jonathan Puckey
a87c9e9a7f Add test for Raster#getAverageColor(compoundPath). 2013-03-17 22:27:44 +01:00
Jonathan Puckey
d7546c0c8d Add failing test for Raster#getAverageColor(path). 2013-03-17 19:24:08 +01:00
Jonathan Puckey
58247ea232 Fix bug in Raster#getSubImage and add test. 2013-03-17 18:57:16 +01:00
Jonathan Puckey
2058bf3438 Add tests for creating a raster from a data url, Raster#getPixel & Raster#setPixel. 2013-03-17 18:41:07 +01:00
Jonathan Puckey
15cdca2a92 Cleanup whitespace in Raster tests. 2013-03-17 18:16:59 +01:00
Jonathan Puckey
9865d7bdd5 Add raster constructor tests, add async test helper function and test image. 2013-03-17 18:13:55 +01:00
Jonathan Puckey
0d3f746c10 Have Raster constructor set Raster#_size to [0, 0] if it was not set. 2013-03-17 17:04:56 +01:00
Jonathan Puckey
15dab4c2db Add failing raster test where creating a raster without a source and then setting its size throws an error. 2013-03-17 16:52:54 +01:00