aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Fix the implementation of the skew transformRémi Tétreault2016-11-021-5/+93
| | | | | Also fix a bug where when calling scale with 3 parameters, cx was not set with the right value.
* Make the code in the FX module simplerRémi Tétreault2016-11-011-210/+1106
| | | | | | | | | | | | | | | | | Here are the changes that have been made: - The loop counter is now incrementing (from 0 to loops) - The loop counter increment even when loops is true - Add absPos, the absolute position of an animation which is its position in the context of its complete duration (including delay and loops) - Make the methods speed, pause/resume affect the delay - The method step no longer needs to recalculate the value of situation.start - Add a second parameter to the method at to allow it to receive an absolute position - Fix the bug where the method at invert the passed position while the animation is running backward Also, I modified the tests of the FX module that required timing to use Jasmine Clock, so now it takes less than 1 second to run all the tests!
* Make matrixify work with transformation chain separated by commasRémi Tétreault2016-11-011-0/+37
| | | | | | According to the SVG spec, transformation chain can be separated by whitespace and/or commas. The method matrixify was not working with transformation chain separated by commas. This commit should fix that bug.
* added test for silently fixing wrong point parameters to SVG.PointArray + ↵dotnetCarpenter2016-10-201-1/+8
| | | | better descriptions for SVG.PointArray tests
* fix leading/trailing space test casedotnetCarpenter2016-10-201-3/+3
| | | | | odd number of points is invalid in SVG See https://svgwg.org/svg2-draft/shapes.html#DataTypePoints
* handle leading and trailing spacesdotnetCarpenter2016-10-201-0/+5
|
* correct naming of testUlrich-Matthias Schäfer2016-10-201-1/+1
|
* hotfix (#529)Ulrich-Matthias Schäfer2016-10-201-0/+5
|
* Change the SVG.FX attribute spd to _speedRémi Tétreault2016-10-171-10/+10
| | | | | This change is to follow the convention already put forward by the _target attribute.
* Make the tests of timeToPos() and posToTime() easier to understandRémi Tétreault2016-10-171-6/+6
|
* Make tests relating to speed easier to understandRémi Tétreault2016-10-171-42/+90
|
* Make speed(0) pause the animationRémi Tétreault2016-10-171-3/+8
|
* Make SVG.FX.speed act more like others animations librariesRémi Tétreault2016-10-161-4/+83
| | | | | | For example, a call .speed(2) would make the animation 2 times faster. If you then call .speed(4), this would make the animation 4 times faster. And a call .speed(1) would make it go back to normal speed.
* Fix the test of SVG.FX.afterAllRémi Tétreault2016-10-151-1/+1
|
* Add tests for SVG.FX.loopRémi Tétreault2016-10-151-1/+153
|
* all tests pass - All your base are belong to usdotnetCarpenter2016-10-123-654/+14
|\
| * fixed id in test which is different in headless browserUlrich-Matthias Schäfer2016-10-121-2/+2
| |
| * Removed wrong tests in sugar.js, fixed remaining tests. Made fill and stroke ↵Ulrich-Matthias Schäfer2016-10-122-644/+12
| | | | | | | | a nop when no argument given
| * remove redundant testUlrich-Matthias Schäfer2016-10-121-8/+0
| |
* | changing implementation according to review by @FuzzymadotnetCarpenter2016-10-121-1/+1
| |
* | fixes #525 by accepting/parsing coordianate strings where x and y is ↵dotnetCarpenter2016-10-121-1/+1
| | | | | | | | seperated by comma and or by space - we count the shape coordinates until (and including) the maximum even number
* | Added failing test for PointArraydotnetCarpenter2016-10-121-0/+5
|/
* Merge pull request #527 from dotnetCarpenter/unittestUlrich-Matthias Schäfer2016-10-1211-120/+334
|\ | | | | Unittests with travis. Thx @dotnetCarpenter
| * halt dev of chrome base solutiondotnetCarpenter2016-10-081-20/+0
| |
| * Apparently travis is running Firefox 31 which doesn't support 'let'dotnetCarpenter2016-10-041-2/+2
| |
| * add the CSS as a fixture - not sure if its needed for the tests but here it isdotnetCarpenter2016-10-043-13/+30
| |
| * updated stand-alone jasmine to 2.5.2dotnetCarpenter2016-10-047-112/+301
| |
| * cli unit test setup donedotnetCarpenter2016-10-042-2/+11
| |
| * trying out karma-fixturedotnetCarpenter2016-10-041-0/+19
| |
| * fix missing ) which caused a subtle syntax errordotnetCarpenter2016-10-041-1/+1
| |
* | fixed specs for SVG.Point, fixes #530Ulrich-Matthias Schäfer2016-10-122-8/+9
| |
* | tests now pass in FirefoxUlrich-Matthias Schäfer2016-10-124-27/+76
|/
* Speed improvements on parent elementwout2016-08-044-7/+7
|
* fixed line constructor which doesn't work with Array as input (#487)Ulrich-Matthias Schäfer2016-05-161-0/+12
| | | | added spec for mentioned issue
* fixed bbox when element is not in the dom (#480), added parameter to `clone`Ulrich-Matthias Schäfer2016-05-132-12/+27
|
* fixed string parsing in viewbox (#483), specs `SVG.ViewBox`Ulrich-Matthias Schäfer2016-05-134-61/+184
|
* fixed bug in `parse()` from `SVG.PathArray` which does not correctly handled ↵Ulrich-Matthias Schäfer2016-05-052-60/+64
| | | | `S` and `T` (#485)
* fixed bug in `add()` and `SVG.Doc().create()`Ulrich-Matthias Schäfer2016-04-152-7/+19
|
* fixed `SVG.morph()` (#473)Ulrich-Matthias Schäfer2016-04-031-3/+4
|
* readme update, clean upUlrich-Matthias Schäfer2016-03-291-4/+4
|
* fix finishing up correctly with even loops, readmeUlrich-Matthias Schäfer2016-03-291-1/+6
|
* discard totalProgress for nowUlrich-Matthias Schäfer2016-03-281-1/+1
|
* revert multiple breaking changes introduced by the last commitsUlrich-Matthias Schäfer2016-03-281-38/+32
|
* updated jasmine and specsUlrich-Matthias Schäfer2016-03-2314-969/+2743
|
* Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2016-02-105-48/+264
|\
| * fixed unit unit regex and renamed it to numberAndUnit, added specs (fix #443)Ulrich-Matthias Schäfer2016-01-231-9/+34
| |
| * fixed `svgjs:data` attribute which was not set properly in all browsers (#428)Ulrich-Matthias Schäfer2016-01-212-36/+73
| | | | | | | | | | added specs for `writeDataToDom()` and `setData()` added toJSON in SVG.Number
| * added specs for `isNumber()` and compile svg.jsUlrich-Matthias Schäfer2016-01-181-0/+16
| |
| * added SVG.Point class as wrapper for SVGPoint, added `el.point()` method ↵Ulrich-Matthias Schäfer2016-01-112-0/+128
| | | | | | | | (#403 / #437)
| * fix #433Denis Mosolov2015-12-291-7/+17
| |