Commit graph

359 commits

Author SHA1 Message Date
Jürg Lehni
06ffd8089d Fix issue in Path#removeSegments() where curves are removed wrongly when start index is 0.
Closes #200.
2013-04-26 08:46:57 -07:00
Jürg Lehni
24443c548a Define failing test for issue #200. 2013-04-26 08:41:18 -07:00
Jürg Lehni
d7e075d316 Handle contour edge cases in Path#contains().
Closes #208.
2013-04-25 11:03:49 -07:00
Jürg Lehni
c70b9e7d7d Fix issue with Path#strokeBounds with #strokeJoin == 'miter' and clockwise orientation.
Closes #206.
2013-04-24 19:27:31 -07:00
Jürg Lehni
77292892ca Define failing test for #206. 2013-04-24 18:55:00 -07:00
Jürg Lehni
62ffa8749c Define failing tests for #208. 2013-04-24 18:35:44 -07:00
Jürg Lehni
6029f59494 More uppercase changes. 2013-04-23 07:29:30 -07:00
Jürg Lehni
96d9b6730f Rename Svg acronyms in API to SVG. 2013-04-23 07:19:08 -07:00
Jürg Lehni
cebeb11301 Rename Json acronyms in API to JSON. 2013-04-23 07:13:51 -07:00
Jürg Lehni
86e77e12bc Use new Project#clear() instead of activeLayer.remove(). 2013-04-23 07:11:23 -07:00
Jürg Lehni
e428074f46 Define some failing tests for Rectangle(object) constructors. 2013-04-21 08:45:07 -07:00
Jürg Lehni
13276b7134 Define more unit tests for Shape#contains(). 2013-04-21 07:44:50 -07:00
Jürg Lehni
4b24690207 Implement Shape#contains() and define unit tests for it. 2013-04-20 20:54:06 -07:00
Jürg Lehni
163036ec72 Define unit tests for Path#contains, some are currently failing. 2013-04-20 17:25:37 -07:00
Jürg Lehni
9efbc288a1 Merge Path.Rectangle and Path.RoundRectangle. 2013-04-19 12:36:49 -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
fbe8a558bd Refactor Format literal to Formatter class that keeps precision stored. 2013-04-09 17:32:19 -07:00
Jürg Lehni
b4a99415d0 Merge PathStyle, CharacterStyle and ParagraphStyle into Style.
Closes #130.
2013-04-09 16:46:20 -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
da7b32a18e Clean up code references to GradientColor. 2013-04-09 08:36:17 -07:00
Jürg Lehni
49cf3201f8 Clean up GradientColor tests. 2013-04-09 01:30:42 -07:00
Jürg Lehni
5209e97c8d Merge GradientColor into Color.
Work in progress.
2013-04-09 01:21:36 -07:00
Jürg Lehni
a03363a6d1 Define tests for deprecated Color constructors. 2013-04-08 20:57:17 -07:00
Jürg Lehni
9cdc4b9372 Switch back to only one Gradient constructor for both linear and radial Gradients. 2013-04-08 20:52:21 -07:00
Jürg Lehni
ca1a395dbd Invert Color#gray component. 2013-04-08 20:20:47 -07:00
Jürg Lehni
dbec03432d Adjust Path Length tests tolerance so they don't fail. 2013-04-08 19:52:09 -07:00
Jürg Lehni
e6fa0085b6 Update all tests that depend on old Adobe Illustrator data to either use better data or more tolerance. 2013-04-08 19:51:14 -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
37566694da Fix Item#type tests. 2013-04-07 22:45:30 -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
Jürg Lehni
9d2fd2f675 Improve test description. 2013-03-23 17:08:17 -07:00
Jürg Lehni
56bec41877 Fix issues with JSON symbol test code.
Export was working, but testing code was faulty.
2013-03-19 18:52:10 -07:00
Jürg Lehni
2064f28d2d Export JSON with higher precision in tests, so comparisons of bounds do not fail. 2013-03-19 18:48:19 -07:00
Jürg Lehni
30b7891a1d Clean up JSON tests a bit. 2013-03-19 17:53:03 -07:00
Jürg Lehni
3613086a64 Move JSON test helpers to JSON file since they are only used there. 2013-03-19 16:23:05 -07:00
Jonathan Puckey
b22dc173ed Fix comparing of Raster#ppi in compareItems test helper. 2013-03-18 00:17:57 +01: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
Jonathan Puckey
6bcb393232 Improve Raster comparison in compareItems test helper. 2013-03-17 16:34:05 +01:00
Jonathan Puckey
a535c106a8 Also compare Item#data in compareItems test helper. 2013-03-17 16:15:58 +01:00
Jonathan Puckey
1732c2cbb2 Use Format.number in compareNumbers test helper with same precision as before. 2013-03-17 15:46:42 +01:00
Jonathan Puckey
4719c05403 Fix comparing of PlacedSymbols in compareItems test helper. 2013-03-17 15:39:00 +01:00