Commit graph

62 commits

Author SHA1 Message Date
Jürg Lehni
96d9b6730f Rename Svg acronyms in API to SVG. 2013-04-23 07:19:08 -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
49cf3201f8 Clean up GradientColor tests. 2013-04-09 01:30:42 -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
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
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
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
9865d7bdd5 Add raster constructor tests, add async test helper function and test image. 2013-03-17 18:13:55 +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
Jonathan Puckey
a2e3759fb8 Tests: fix comparing of GradientColor#hilite. 2013-03-17 15:23:01 +01:00
Jonathan Puckey
35d71e9e33 Improve comparePathStyles test helper. 2013-03-17 15:20:14 +01:00
Jonathan Puckey
69ea1bf3fb Add helper for testing JSON exporting and re-importing of projects. 2013-03-17 14:42:20 +01:00
Jürg Lehni
e6ca62da90 Document new equals() helper feature better. 2013-02-08 19:40:36 -08:00
Jürg Lehni
6ae500e6df Make equals() for unit tests more clever.
Supporting tolerance for numbers, and calling of #equals() on expected value.
2013-02-08 19:37:58 -08:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jürg Lehni
7756e90ff9 Make sure cloned items do not receive the same name when placed inside the same parent, use numbered versions instead. 2013-01-20 14:01:43 -08:00
Jürg Lehni
e7d9699999 Define failing test for cloning complex imported SVG compound paths.
Something with #clockwise goes wrong there.
2012-12-01 11:05:48 -08:00
Jürg Lehni
a1ec8b7db1 Fix PointText#point test. 2011-12-20 23:32:28 +01:00
Jürg Lehni
42d0e722db Rename RGBColor -> RgbColor, to avoid clash with native constructor, and follow same naming convention for HsbColor and HslColor, but keep references to old names for PaperScript scopes for now. 2011-11-10 19:16:34 +01:00
Jürg Lehni
5655981f6d Clean up white spaces. 2011-07-07 16:09:02 +02:00
Jürg Lehni
4029e6abf7 Have various compares to output the compared values if they are not equal. 2011-05-26 10:55:39 +01:00
Jürg Lehni
088f1f88af Fix wrong naming introduced in previous commit. 2011-05-26 10:54:46 +01:00
Jürg Lehni
b29827443e Add compareObjects() method for functionality shared among various compare methods. 2011-05-26 09:20:21 +01:00
Jürg Lehni
e273c54ad2 Move cloneAndCompare() to Item_Cloning.js test file. 2011-05-26 09:19:51 +01:00
Jonathan Puckey
c0ecc7f85c More work on test helpers. 2011-05-21 20:37:25 +02:00
Jonathan Puckey
0fdfd0033f Tests helpers: add compareSegmentPoints function. 2011-05-21 20:36:30 +02:00
Jonathan Puckey
f5e9ad2e85 Tests: use compareSegmentLists in compareItems helper. 2011-05-21 19:42:29 +02:00
Jonathan Puckey
fc8a9bb10b Punctuation. 2011-05-21 19:41:33 +02:00
Jonathan Puckey
40832a524b Tests helpers: implement compareSegments and compareSegmentLists. 2011-05-21 19:41:02 +02:00
Jonathan Puckey
a2a603fce4 Tests: more checkIdentity work in helpers. 2011-05-21 19:11:43 +02:00
Jonathan Puckey
2bc1c4682d Tests: add checkIdentity flag to helper functions for strict comparison check. 2011-05-21 18:43:22 +02:00
Jonathan Puckey
cadace42ce Tests: Improve compareItems function. 2011-05-21 18:38:49 +02:00
Jonathan Puckey
da28757111 compareItems helper: make color comparison strict. 2011-05-21 14:07:29 +02:00
Jonathan Puckey
ce586bd07e Remove todo. 2011-05-21 14:06:37 +02:00
Jonathan Puckey
e386ce179a Tests: cloneAndCompare: if the item has a name, check that the copy is returned when accessing the children list of its parent by its name. 2011-05-21 14:05:52 +02:00
Jonathan Puckey
fd810e9804 Tests: clean up whitespace in compareItems. 2011-05-21 12:49:15 +02:00
Jonathan Puckey
d03dd05195 Tests: compareItems: compare item#matrix if present. 2011-05-21 12:48:43 +02:00
Jonathan Puckey
c3092db208 Add Raster specific tests to compareItems helper function. 2011-05-21 12:47:58 +02:00
Jonathan Puckey
b579b9c96c Tests: cloneAndCompare: compare item._parent and item.nextSibling. 2011-05-21 12:46:21 +02:00
Jonathan Puckey
e3ba43ce3b Tests: support comparing of GradientColor in compareItems helper function. 2011-05-21 12:10:05 +02:00
Jonathan Puckey
5d48a7383a Tests: add compareGradientColors helper function. 2011-05-21 12:09:00 +02:00
Jonathan Puckey
6829233013 Tests: Fix bug in compareItems helper function. 2011-05-20 22:03:46 +02:00