Commit graph

38 commits

Author SHA1 Message Date
Andrea Bogazzi
abe813fe8f
Fix Trailing and zwj (#5048)
* fix-trailing

* fix zwc

* unbuild builds

* fix zwc

* added a small testl

* reenable all tests

* added test
2018-06-17 13:19:38 +02:00
Andrea Bogazzi
ac804af486
Add new events for transformations (#4979)
* before:transform event

* added more properties to transform events

* add some more events

* fix lint

* tests
2018-05-19 23:37:09 +02:00
Andrea Bogazzi
d5f3bf4a79
Canvas SVG export (#4852)
* changed export

* mmm

* mmm

* added some tests

* fixed tests

* ....lint

* ....lint
2018-04-01 00:11:53 +02:00
Asturur
b7dc7e1682 reenbaled tests 2018-03-06 14:02:59 +01:00
Andrea Bogazzi
abbeb91763
Changed params for setSuperScript, setSubScript (#4780)
* changed params
* fixed toSVG export
2018-03-06 12:36:52 +01:00
Andrea Bogazzi
1c10b8c1e3
events drag (#4421)
added drag and drop events
2018-02-24 22:19:58 +01:00
Andrea Bogazzi
e70e65fe92
isEmptyStyles for textbox (#4762)
* isEMptyStyles for textbox
* added tests
* added missing file
2018-02-24 18:45:23 +01:00
Andrea Bogazzi
43ebcd8278
Gradient fix parsing floats (#4637)
* fixed gradient parsing and circle width/height leak

* added a small test

* fix lint

* test re enabled

* fixed tests
2018-01-20 01:09:47 +01:00
Andrea Bogazzi
6309387665
Add CrossOrigin managment to fabric.Pattern (#4618)
* added crossOrigin

* adding tests

* added some basic test
2018-01-18 08:39:02 +09:00
Jeremy Shipman
0c936ed6bc Fix testem runner, and further improvements (#4593)
* Switched qunit dependency to npm

* Fixed testem not working

* Switched test.js build to use node-qunit.
As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit.

* Introduced qunit 2.4.1, with an npm script for running node tests

* Switched testem page fixture to use qunit package instead of qunitjs

* Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration.
This means that individual tests will show up in testem output via the the `tap` test protocol.

* Made canvas_static 'toDataURL cropping' test asynchronous.

* Configured QUnit testTimeout and enabled 'noglobals' config

* Updated .travis.yml config to do cross-browser/env testing via Testem

* Specify qunit binary directly to fix confict with binary from node-qunit

* Avoid test hanging by aborting the animated cursor

* Firefox test fix, and enabled in Testem config
2017-12-31 09:51:07 +01:00
Asturur
dbf307c5eb reenable all tests 2017-12-10 21:14:52 +01:00
Andrea Bogazzi
fb13ed0bdf
Insert a method to insert text programmatically (#4551)
* sofar

* test
2017-12-10 21:13:38 +01:00
Andrea Bogazzi
fd14303dae
Fix drawing of a point (#4492)
* initialize at 1

* added tests

* added test file
2017-11-24 11:36:36 +01:00
Andrea Bogazzi
0f265631b3 Compare distance between cursor with absolute value. (#4295)
* fix with Math.abs

* ok this works

* added test

* added test file

* linting tests

* wrong test
2017-09-07 12:59:02 +02:00
Andrea Bogazzi
c9b562de9e Remove activeGroup functionalities from Group, create ActiveSelection class (#4076) 2017-07-22 11:37:17 +02:00
Andrea Bogazzi
553669c938 Extend test coverage (#3999)
* extended test coverage
* new file
* fixed lint
2017-06-12 11:13:55 +02:00
Andrea Bogazzi
7517b951ab Remove PathGroups for Groups. (#3969)
* removed pathGroups
2017-06-01 11:02:32 +02:00
Andrea Bogazzi
437eea118f allow for deep state check and save (#3262) 2016-09-15 12:49:25 +02:00
Andrea Bogazzi
cf5f327f55 Extending test coverage (#3148)
* adding tests
2016-08-14 11:05:44 +02:00
Andrea Bogazzi
d93f91febc Start to cleant setSelections (#3119) 2016-07-31 12:21:52 -04:00
Andrea Bogazzi
be8dfae17e Various fixes (#3057)
Fixes hidden textarea positioning, rendering fixes during canvas zoom.
2016-06-19 23:33:54 +02:00
Andrea Bogazzi
dfc574c099 Fix tests removing extra context.Restore(); 2016-02-07 18:23:14 +01:00
Andrea Bogazzi
f998fa496e Update test.js 2015-06-07 10:02:48 +02:00
kangax
12c43d6e4c Enable coverage 2014-03-08 14:41:06 -05:00
kangax
dbbd4b2fa7 all.js -> fabric.js. Closes #1049 2013-12-14 12:10:42 +01:00
kangax
673fa39eba Start adding i-text unit tests; add additional util and color tests 2013-11-22 17:30:55 +01:00
Lorenzo Polidori
d1642c0729 Added object controls visibility (github issue #552). 2013-11-03 23:08:05 +00:00
Drew Lustro
1f993e92b8 requirejs support added via "requirejs" build.sh option
$ node build modules=ALL requirejs
- dist/all* is clean of changes
- fixed bug in build.sh that would prevent dist/all.require.js from compiling properly
- Updated test.js to include test_script.js fixtures
- NOTE: Qunit tests largely incompatible with requirejs version... need more
insight on how Qunit works to get fabric in the namespace since it is
no longer a global when built as an AMD module.
2013-09-03 14:15:12 -04:00
Kienz
f2035da955 Add image filter tests
Doc fixes
2013-08-09 19:59:30 +02:00
kangax
9df6f6b2d4 Fix animation mixin inclusion 2013-07-28 15:42:08 +02:00
kangax
5bd8ba28d6 Fix loadFromJSON callback when objects array is empty. Closes #703 2013-06-13 13:39:17 +02:00
kangax
5ee9b13a92 Add support for shadows (via fabric.Shadow) 2013-02-04 20:49:05 +01:00
kangax
107dcfcbd6 Add fabric.Pattern tests 2013-02-03 17:01:01 +01:00
kangax
9a7d40d7d7 Change the way gradients are initialized.
They no longer need `ctx` property, which is now taken from object directly during rendering time.
Add unit tests for gradients.
2012-08-20 18:23:53 +02:00
kangax
fe9d927d47 Move site into a different repository. 2012-08-10 17:20:04 +02:00
David Rice
4882d540be running npm test should exit with a failure status if test failures > 0, should fix travisci reporting 2012-08-08 23:28:07 +01:00
kangax
581d5a54b9 Fix compatibility with Node (including loadSVGFromString). 2012-07-31 20:55:49 +02:00
kangax
7aaba5c227 Make npm test work via node-qunit. Add .travis.yml. 2012-07-29 22:48:34 +02:00