Commit graph

28 commits

Author SHA1 Message Date
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
f2f37e5ffd Update unit tests count. Add link to project on github to a demo page. Fix one of the remaining failing json tests. 2010-09-09 17:37:32 -04:00
kangax
18d217f2b8 Fix fabric.Object.prototype.toJSON test (which was testing toJSON according to old behavior — returning string, rather than an object). 2010-09-09 17:20:55 -04:00
kangax
e9fd7c6166 Fix bug in Polyline and Polygon points attribute parsing (thanks to unit tests). 2010-09-09 17:10:21 -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
9a9605fecd Alias Math.* methods for slight perf. increase.
Remove `fastestClearingMethod` test, as webkit has rendering bugs with `canvas.width = canvas.width` type of clearing.
Rename some properties/methods in `fabric.Element` from `_oXxxxx` & `_aXxxxx` to `_xxxxx`.
Add test for `fabric.Element::onFpsUpdate`.
2010-07-31 13:55:10 -04:00
kangax
536d532d41 Various compatibility fixes. Add fabric.util.falseFunction. 2010-07-27 17:58:23 -04:00
kangax
69d83c6484 Add information about test suite results in IE 6 & 7. Few tweaks to make test suite run in IE6. 2010-07-26 15:39:00 -04:00
kangax
34777a0fae Change benchmark to populate not only squares but circles and triangles as well (+ better opacity and positioning randomization). 2010-07-26 01:33:01 -04:00
Juriy Zaytsev
1264f05aa4 Some more renaming. 2010-07-24 00:34:18 -04:00
Juriy Zaytsev
33ad430a62 Rename test files: canvas_* --> * 2010-07-24 00:15:13 -04:00
Juriy Zaytsev
5d36a6393d Ensure test suite can be run on IE8 (currently there's ~30-40 failures). 2010-07-14 10:02:03 -04:00
Juriy Zaytsev
f4b8c6aa89 Change conditional comments so that excanvas.js is only downloaded in IE<9. 2010-07-14 09:25:23 -04:00
Juriy Zaytsev
492eda82a6 Fix loading order of objects in loadFromDatalessJSON. Fix few unit tests. 2010-07-13 16:17:33 -04:00
Juriy Zaytsev
2340a98526 Rename canvas_*.class.js files to just *.class.js 2010-07-09 21:50:13 -04:00
Juriy Zaytsev
2e72a4d8c5 Rename Canvas.* to fabric.* (lowercased name makes more sense since Canvas is not a constructor). 2010-07-09 19:43:50 -04:00
Juriy Zaytsev
4b5ac284e8 Fix remaining failing tests. 2010-07-09 18:58:33 -04:00
Juriy Zaytsev
7242ea93de Change Prototype unit testing framework to QUnit; change all tests accordingly. 2010-07-09 10:21:40 -04:00
Juriy Zaytsev
be20251d85 Remove few more prototype-isms, start transitioning to QUnit (it's not ideal, but should do for now). 2010-06-26 22:57:02 -04:00
Juriy Zaytsev
05a6aa4d42 Prototype.js and APE.js are no longer dependencies (shrinking overall size of fabric.js by ~150KB). Add json2.js and a simple base library (still needs tests). 2010-06-17 10:00:47 -04:00
Juriy Zaytsev
f8806b649e Start changing the way unit tests are run. 2010-06-16 15:19:11 -04:00
Juriy Zaytsev
fcb2877557 Replace $w with split(' ') (to remove dependency on global, non-descriptive variable and Prototype in general). Add few missing console.warn statements when double initialization is attempted. 2010-06-11 10:29:12 -04:00
Juriy Zaytsev
e1d036de71 Remove _unittest.js and some of the unnecessary modules from test loader. 2010-06-11 10:12:19 -04:00
Juriy Zaytsev
728b68a66c Import fabric.js unit tests from printio 2010-06-11 10:07:08 -04:00