Commit graph

51 commits

Author SHA1 Message Date
Andrea Bogazzi
847fe90c4b
added some tests for fabric.util (#5349)
* added some tests

* test
2018-10-28 21:46:32 +01:00
Andrea Bogazzi
5482ac350a
Try to fix node 10 unit test (#5235)
* fixed
* removed node 9
2018-09-16 22:51:51 +02:00
Andrea Bogazzi
464708aafc
To data url and zoom (#5139)
* added a new option

* deleted unused method

* passes

* ok there was an error

* reused util

* ok

* extra console.log

* fixed
2018-08-05 00:56:20 +02:00
Andrea Bogazzi
4af1c0d6b5
Fix clear fabric font cache (#5019)
* fix clearFabricFontCache

* added a small test

* fixed
2018-06-02 00:03:06 +02:00
Andrea Bogazzi
2e532cc362
Limit sin and cosin very small floats on 90/270 degrees (#4734)
* so far ok

* fix transformations decimal

* remove some changes

* less changes

* test passing

* less calculation

* added shortcut

* modified tests
2018-02-18 15:56:27 +01:00
Andrea Bogazzi
7eea5228b9
removed specific node code (#4470)
* removed node code

* fixed UTs
2017-11-19 20:00:01 +01:00
Andrea Bogazzi
c03111824c Update deps (#4315)
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
b5323bd83e make function just create canvas (#4172)
* make function just create canvas
* added tests
* added tests
2017-08-05 21:32:03 +02:00
Andrea Bogazzi
351e7dfa47 Multiple fixes (#4119)
* multiple fixes
* updated tests
2017-07-22 16:34:47 +02:00
Andrea Bogazzi
d106051554 Remove accessors (#4065) 2017-07-03 17:02:44 +02:00
Andrea Bogazzi
6185b07408 Limit cache size to upper and lower limit (#4035)
* just name change

* help

* test difference

* ok better limiting

* fix lint
2017-06-25 14:50:28 +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
145bd3b03f Force async (#3996)
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
7517b951ab Remove PathGroups for Groups. (#3969)
* removed pathGroups
2017-06-01 11:02:32 +02:00
Andrea Bogazzi
b979bd5861 switch to canvas prebuilt (#3757)
* swithced to canvas prebuilt

* try 2

* remove toolchanin needed to setup canvas
2017-03-14 12:37:07 +01:00
Andrea Bogazzi
ab68d3a4ab Reuse come code between object and canvas (#3600)
* try to reuse code
* some fixes
* fixed errors

* Update util.js
2017-01-01 18:07:56 +01:00
Andrea Bogazzi
3c0fe81b77 be more strict on when not to re render (#3594)
* add more check to first return false

* fix ;

* fix ; in tests

* fix test
2016-12-28 13:22:23 +01:00
Andrea Bogazzi
2c814db928 Better deep object cloning and savestate check (#3434)
* fixed deep cloning with function removed array ordering
* added tests
2016-11-20 19:11:20 +01:00
Jeremy Shipman
d0c32acf7f Introduced testem test runner (#3327)
* Introduced testem test runner.
Install testem via 'npm install -g testem'
Run testem via 'testem'

* Fixed fixture image paths in tests
2016-10-05 09:12:26 +02:00
Andrea Bogazzi
08f60adbea switch to eslint (#3229)
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Andrea Bogazzi
cf5f327f55 Extending test coverage (#3148)
* adding tests
2016-08-14 11:05:44 +02:00
kibao
69d616ad23 Node.js Invoke loadImage callback if there is no data or a network error 2015-05-06 21:34:41 +02:00
kangax
94f7035624 Lint unit tests and fix errors/warnings 2015-04-23 11:47:35 +02:00
asturur
6ceb1123b6 Update util.js 2014-07-18 19:54:50 +02:00
asturur
c346d297ad Update util.js
Any svg return a pathgroup
2014-07-18 19:43:42 +02:00
kangax
448dfad97e Fix unit tests 2014-01-04 15:02:51 -05:00
kangax
dbd9193703 Debounce element parsing. Thanks @biovisualize. Closes #1052 2013-12-14 12:19:54 +01:00
kangax
3abe2f74f3 Add expect(0) 2013-11-23 17:49:21 +01:00
kangax
854d428c38 Add more tests 2013-11-23 17:35:31 +01:00
kangax
673fa39eba Start adding i-text unit tests; add additional util and color tests 2013-11-22 17:30:55 +01:00
kangax
83ca60e885 Fix resolveNamespace and getKlass on node 2013-09-24 13:25:38 +02:00
kangax
1c1b7e4b95 Fix function body matching regex. Add fabric.util.getFunctionBody 2013-06-01 18:08:36 +02:00
kangax
d89bbf0d8d Temporarily comment out unit tests that fail due to Node 0.10 bug (https://github.com/joyent/node/issues/5011) 2013-03-19 13:10:33 +01:00
kangax
894988b508 Fix browser-based unit tests 2012-12-23 23:30:01 +01:00
kangax
35ba6c6bf5 Final fix for fabric.util.loadImage 2012-12-10 15:59:44 +01:00
kangax
5d1cfce96a Try to fix fabric.util.loadImage test once again. 2012-12-10 15:52:14 +01:00
kangax
26d735146f Fix fabric.util.loadImage test. 2012-12-10 15:44:30 +01:00
kangax
7a1de3c57b Fix fabric.util.loadImage test. 2012-12-04 12:39:46 +01:00
kangax
1633bce401 Add most of the unit tests for fabric.util methods. Fix #35. 2012-12-01 17:52:03 +01:00
kangax
fe9d927d47 Move site into a different repository. 2012-08-10 17:20:04 +02:00
kangax
fe08e6aa3b Revamp site to use jekyll. 2011-09-07 18:02:17 -04:00
kangax
8ea5f0d52c Closes #47. More conforming Function.prototype.bind. 2011-08-29 12:09:32 -04:00
kangax
27999a327c Add unit tests for fabric.loadSVGFromString. 2011-08-04 20:48:25 -04:00
kangax
b35b559c6a String.prototype.trim now strips '\xA0' characters in engines which fail to match that character via \s. Fix a couple of unit tests. 2010-09-14 18:57:55 -04:00
kangax
769c0c1eb7 Function.prototype.bind now calls object it's being invoked on indirectly (better spec compliance), thanks Garrett Smith;
Unit test `fabric.util.makeElementUnselectable` and make test names in util module more descriptive.
2010-09-14 12:53:29 -04:00
kangax
ed4dca3117 Add unit tests for fabric.util.makeElement, fabric.util.addClass, and fabric.util.wrapElement. 2010-09-09 16:37:07 -04:00
kangax
d00a37d593 More effecient Function.prototype.bind and unit tests for bind, getById, and toArray. 2010-09-06 12:33:57 -04:00
kangax
6ba986da49 Add unit tests for fabric.util.object.extend and fabric.util.object.clone. 2010-09-01 17:56:59 -04:00
kangax
2d9fe82214 Add few more fabric.util unit tests — trim, camelize, capitalize. 2010-09-01 17:35:17 -04:00
kangax
536d532d41 Various compatibility fixes. Add fabric.util.falseFunction. 2010-07-27 17:58:23 -04:00