Commit Graph

62 Commits

Author SHA1 Message Date
juliandescottes
dc5209628c fix selectionmanager unit test 2017-09-06 23:05:17 +02:00
juliandescottes
e1797b2008 Fix SelectionManagerTest by using a clipboard event mock 2017-09-06 23:05:17 +02:00
juliandescottes
c31b7a351c update piskel mock in BackupServiceTest 2017-08-03 00:21:08 +02:00
juliandescottes
ee45cdcc45 add a browse backups dialog 2017-08-03 00:21:08 +02:00
Julian Descottes
e9b39a5c61 add unit test for PiskelDatabase 2017-08-03 00:21:08 +02:00
Julian Descottes
d0a32b18c5 add unit test for backup database 2017-08-03 00:21:08 +02:00
Julian Descottes
372ad1f513 add unit test for BackupService 2017-08-03 00:21:08 +02:00
Julian Descottes
af65344c23 Issue #640 - rename PaletteService pointer to localStorage to localStorageGlobal
PaletteService exposes window.localStorage as this.localStorageService. This is confusing since we also have the LocalStorageService class used to save piskels in local storage.
2017-08-03 00:21:08 +02:00
juliandescottes
b768a22b1c Fix #689 - add unit test for v1 deserializer 2017-05-14 17:39:33 +02:00
juliandescottes
8f4f9d9b0a Fix #689 - add unit test for v0 deserializer 2017-05-14 17:39:33 +02:00
juliandescottes
14e969a3bb Fix typos and errors in existing DeserializationTest 2017-05-14 17:39:33 +02:00
juliandescottes
80a1edf027 add unit test for piskel MergeUtils 2017-05-13 01:36:04 +02:00
juliandescottes
af3d0fa48b Feature #683: duplicate layer when SHIFT+CLICK on create layer button 2017-05-13 01:11:45 +02:00
juliandescottes
94b1a1df4a History service gets core piskelController from public piskelController 2017-01-14 21:58:37 +01:00
juliandescottes
552d4fa710 nits on test/js/utils/PixelUtilsTest_visit_connected.js 2017-01-14 15:44:47 +01:00
juliandescottes
b11f7a430d add unit test for getSimilarConnectedPixelsFromFrame 2017-01-14 00:56:24 +01:00
juliandescottes
42f4812b46 move drop image logic to FrameUtils, add unit test 2017-01-13 13:58:57 +01:00
juliandescottes
03f37d46ac add unit tests for colorToInt 2017-01-13 03:31:02 +01:00
juliandescottes
dd9b1e0189 add test to check deserialized piskel contains valid frames 2016-12-21 17:20:54 +01:00
juliandescottes
32070efcc1 save split: add comments and cleanup 2016-12-21 12:22:50 +01:00
juliandescottes
66c941dd25 support chunked layerData in regular deserializer 2016-12-18 11:36:11 +01:00
juliandescottes
dba62d2b0d add pskl.utils.Array.chunk 2016-12-18 09:16:52 +01:00
Julian Descottes
37d2861352 move fps info from preview controller to piskel model 2016-12-13 09:17:34 +01:00
Smie
da0e8dec84 Stylistic changes to pixel and pen size code. 2016-11-28 08:21:30 -07:00
Smie
8cb7a4aaf6 Permits brush size of only 1-32 pixels. 2016-11-21 12:53:14 -07:00
Julian Descottes
73986c4e61 move arraybuffer serializer to dedicated subfolder 2016-10-16 18:28:12 +02:00
Dávid Szabó
c522d48c8f Fix test to work with new serializer format 2016-10-01 14:34:01 +02:00
Dávid Szabó
f5c98cf0b3 Rework pixel storage, manipulation, rendering 2016-10-01 14:34:01 +02:00
Julian Descottes
e6c8c59e81 Add FramesheetRenderer unit test 2016-05-29 22:30:09 +02:00
Matt D
da60495643 Had a zero instead of an O in unit test... 2016-05-12 11:15:29 +10:00
Matt D
5345c1ff0a Added unit test 2016-05-12 10:56:33 +10:00
Julian Descottes
7bf2662b66 Issue #414: part6: Support transparency when exporting as PNG spritesheet
Added flattenFrameAt to LayerUtils.
Added renderFrameAt to PiskelController (using flattenFrameAt)
Use renderFrameAt in PiskelRenderer (which is used for PNG spritesheet)

chore: renamed createLayerFromSpritesheet to createFramesFromSpritesheet
       (in LayerUtils)
2016-03-24 02:17:57 +01:00
Julian Descottes
6546b520b3 Issue #414: part2: serialize and deserialize layer opacity 2016-03-24 02:17:57 +01:00
Julian Descottes
7660119b50 Issue #414: part1: add opacity to Layer model 2016-03-24 02:17:57 +01:00
Julian Descottes
cc62c5b3cb chore : fix ShortcutServiceTest on macosx 2016-01-24 13:02:32 +01:00
jdescottes
f5a33dc39a Issue #146 : add unittest for line & uniform lines
Uniform lines step is now capped so that the step remains lower
than min(dx, dy). If the step would be greater than this value,
use Infinity and draw a straight line
2015-12-04 14:30:36 +01:00
jdescottes
f0ed4927e8 Issue #258 : Move resize method to utils + add unit test 2015-12-01 00:54:17 +01:00
jdescottes
676cbd17ea Issue #287 : Edit shortcuts from cheatsheet window (WIP) 2015-11-12 20:31:49 +01:00
jdescottes
ca3bbf1c57 Issue #287 : Shortcuts now rely on Shortcut instances. Shortcut key can be changed dynamically. 2015-11-12 20:31:47 +01:00
jdescottes
8081d5e232 Issue #287 : Fix unit test mocks 2015-11-12 20:31:46 +01:00
jdescottes
c11e0d5d8d Issue #287 : Rename addShortcut/removeShortcut to less ambiguous register/unregister 2015-11-12 20:31:45 +01:00
jdescottes
a286d5926a Issue #277 : Cleanup save controller 2015-10-01 00:30:36 +02:00
jdescottes
acb6fd2172 Issue #277 : Add unit test for StorageService 2015-09-25 01:41:22 +02:00
jdescottes
ef05cc4fd1 Refactor : move FrameTransform to transform package 2015-09-20 02:20:16 +02:00
grosbouddha
8faa6db4c0 Fix SelectedColorsService tests 2015-09-16 23:36:55 +02:00
grosbouddha
a58b643a26 Add SelectedColorsService unit tests 2015-09-16 01:13:21 +02:00
juliandescottes
99da69553c Copy paste out of bounds : added SelectionManager unit tests 2015-08-09 15:42:46 +02:00
juliandescottes
1208324d4d Copy paste bug : add unit tests for FrameUtils with null value 2015-08-09 12:37:03 +02:00
jdescottes
3f181c6248 Fix gif export transparency issue 2015-04-27 22:23:35 +02:00
juliandescottes
ba491736c1 test : add unit test for ColorUtils 2015-04-13 13:02:12 +02:00