Commit graph

46 commits

Author SHA1 Message Date
Jürg Lehni
b8674a3bc1 Implement unit test comparators for Point, Size and Rectangle. 2014-12-28 14:59:48 +01:00
Jürg Lehni
c87ce4de4c Implement Item#replaceWith(item)
Closes #454
2014-09-27 22:52:37 +02:00
Jürg Lehni
0eb96898a3 Clean up Item tests. 2014-09-27 22:50:22 +02:00
Jürg Lehni
8414607cee Define tests for Item#remove() 2014-09-27 22:49:32 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
1f7cb30fa5 Correctly transform Item#pivot when #matrix is applied to an item's contents.
Closes #452 and defines unit tests to cover this bug.
2014-04-11 13:18:27 +02:00
Jürg Lehni
833d71f7ea Remove Item#type and replace it with Item#className, the non-hyphenated version of #type. 2014-03-18 11:42:38 +01: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
3a043e0023 Fix empty tests. 2013-06-11 13:40:50 -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
Jonathan Puckey
7eda782cfe Clean up item tests. 2013-03-16 16:27:28 +01:00
Jonathan Puckey
a3cb9862a3 Improve expected outcome description of failing test. 2013-03-16 15:46:10 +01:00
Jonathan Puckey
3f2fdbc710 Add failing test for setting a blend mode on an item in a transformed group. 2013-03-16 15:44:04 +01:00
Jonathan Puckey
b63d468bf2 Fix Item#parent test. 2013-03-10 17:25:25 +01:00
Jonathan Puckey
fd3fc7f2d7 Implement Item#setParent, making Item#parent writeable. Closes #186. 2013-03-10 15:35:33 +01:00
Jonathan Puckey
25d34be59b Implement Item#data. Closes #188. 2013-03-10 14:59:53 +01:00
Jürg Lehni
3856302282 Fix Item#type tests, by adapting to new camel-cased version. 2013-03-03 14:22:31 -08:00
Jonathan Puckey
ace98d689f Fix Item#type test. 2013-03-03 20:14:13 +01:00
Jonathan Puckey
343dac35b1 Add tests for Item#sendToBack & Item#bringToFront. 2013-03-03 20:08:49 +01:00
Jonathan Puckey
1170c14a9a Add tests for Item#isInserted. 2013-03-03 16:59:27 +01:00
Jonathan Puckey
2c9846bf09 Add failing tests for Item#type. 2013-03-03 14:40:37 +01:00
Jürg Lehni
881f624575 Add failing test when inserting multiple children into the same parent. 2013-03-01 22:41:58 -08:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jonathan Puckey
55a795c285 Add failing tests for renaming a removed item and naming a top level group. 2012-03-01 16:39:00 +01:00
Jürg Lehni
936fd43c37 Implement Item#layer. 2011-09-18 10:38:16 +02:00
Jürg Lehni
5655981f6d Clean up white spaces. 2011-07-07 16:09:02 +02:00
Jürg Lehni
79c0ad8cc5 Update copyright notices. 2011-07-01 12:17:45 +02:00
Jonathan Puckey
115d12f6ce Add failing test where cloning a linked size throws an error. 2011-06-21 18:42:53 +02:00
Jürg Lehni
6f4a9d5c7b Merge branch 'master' of github.com:scriptographer/paper.js
Conflicts:
	test/tests/Item.js
2011-06-17 16:36:58 +01:00
Jürg Lehni
c4b51209f3 Improve named child access tests. 2011-06-17 16:33:25 +01:00
Jonathan Puckey
6fc08c6417 Item: implement #addChild(item), #insertChild(index, item), #insertAbove(item) and #insertBelow(item) Deprecate: #moveAbove, #moveBelow, #appendTop, #appendBottom. 2011-06-17 16:58:41 +02:00
Jonathan Puckey
08d387a5d4 Add failing test for changing Item#position#x. 2011-05-31 01:46:49 +02:00
Jürg Lehni
777cc95dc3 Rename proj -> project in all tests. 2011-05-20 14:08:17 +01:00
Jürg Lehni
4be0e55dc5 Use #appendTop() instead of the remove #appendChild() in tests. 2011-05-17 13:09:35 +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
441dc3641d Add additional test for #name. 2011-05-15 18:53:22 +01:00
Jonathan Puckey
db06f55e3f Add tests for named access of items. 2011-05-15 19:13:55 +02:00
Jürg Lehni
f150552a9c Remove test for Path#hidden which was removed already. 2011-05-15 15:10:53 +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
3917d9c110 Change case of Item.js test file. 2011-05-02 09:07:41 +01:00
Renamed from test/tests/item.js (Browse further)