Commit graph

76 commits

Author SHA1 Message Date
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)