Commit graph

39 commits

Author SHA1 Message Date
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
Jonathan Puckey
8f5f5ee43c Tests: add cloneAndCompare and compareItems helper functions. 2011-05-20 19:39:12 +02:00
Jürg Lehni
777cc95dc3 Rename proj -> project in all tests. 2011-05-20 14:08:17 +01:00
Jürg Lehni
cfe968d30e Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document. 2011-05-16 13:33:15 +01:00
Jürg Lehni
2a24ec66ac Have test() method automatically create and remove a Document for reach test. 2011-05-14 18:59:04 +01:00
Jürg Lehni
520f5054e5 Update tests to use new function() {} notation for automatic rendering of messages. 2011-05-07 17:46:06 +01:00
Jürg Lehni
66824b780a Allow equals() to receive functions from which it then extracts the code for the message. 2011-05-07 17:25:34 +01:00
Jürg Lehni
05b9e0d13a Make tests use QUnit.strictEqual. 2011-05-05 13:38:20 +01:00
Jürg Lehni
d9f96b9a7a Clean up handling of messages. 2011-05-05 13:05:39 +01:00
Jürg Lehni
fb6955e509 Replace compareSegments() / compareSegmentLists() calls with straight toString() compares. 2011-05-04 19:40:52 +01:00
Jürg Lehni
66465541c6 Clean up code (if() -> if ()). 2011-05-03 08:55:01 +01:00
Jonathan Puckey
ba7e2fb99b Add test helpers for HSBColor and GrayColor and fix compareNumbers function. 2011-03-09 02:25:38 +01:00
Jürg Lehni
2e55cd9871 Clean up source loading sequence, and rename test_function.js to helpers.js 2011-03-08 01:05:01 +00:00
Renamed from test/lib/test_functions.js (Browse further)