60 Commits

Author SHA1 Message Date
Joe Pea
fa4e236c21
Fix indentation 2018-01-13 00:44:21 -08:00
Michael Casebolt
daec732aa6 Add a test for zero-duration case. 2017-10-29 11:24:24 -07:00
Michael Casebolt
68cfdc2cdd Add a test for tween removal during an update. 2017-09-15 14:45:40 -07:00
Michael Casebolt
61ca327b41 Add missing comma in tests.js. 2017-07-14 16:38:31 -07:00
Michael Casebolt
1cef6ec51e Merge Group code. 2017-07-14 16:36:51 -07:00
Michael Casebolt
e183b42f03 Call removeAll before isPlaying tests. 2017-07-14 16:26:12 -07:00
Michael Casebolt
5647a70939 Remove stopChainedTweens test because it didn't test stopChainedTweens. 2017-07-14 16:16:34 -07:00
Michael Casebolt
977b047e17 Fix tween.isPlaying() tests. 2017-07-14 15:05:45 -07:00
Michael Casebolt
d76344731f Add tests for tween.isPlaying() 2017-07-14 14:47:38 -07:00
Alex Burner
53fcd08118 Add tests for TWEEN.Group 2017-07-04 22:42:17 -07:00
Michael Casebolt
8f5530ab19 Merge hashset into master. 2017-06-21 13:57:48 -07:00
Michael Casebolt
298d49c896 Include a newer version of nodeunit.js for browser use. 2017-06-15 14:21:49 -07:00
Michael Casebolt
1e976023ee Add additional tests of the value of a tweened getter/setter property. 2016-10-12 22:52:40 -07:00
Jono Brandel
abac88e0f5 Modified Tween.js to be compatible with Object.defineProperty getter / setters 2016-09-23 18:16:13 -07:00
Michael Casebolt
98517737ff Merge, move old tests to new location, and update old tests to new format. 2016-08-11 23:01:42 -07:00
Michael Casebolt
53ff6a3b5d Add unit tests for the end Tween.end function. 2016-08-03 22:36:45 -07:00
Michael Casebolt
157d1c453b Merge branch 'node' 2016-08-02 22:46:53 -07:00
Michael Casebolt
2e6a8a2b47 Setting global.window no longer necessary for testing. 2016-08-02 22:08:34 -07:00
Michael Casebolt
0dd7bc8776 Add test for the preserve flag feature. 2016-08-02 21:39:56 -07:00
Michael Casebolt
5251bacd82 Revert "Aframelogo" 2016-08-01 22:36:10 -07:00
Michael Casebolt
1cd31846f4 Add a unit test to verify that the preserve flag can be used to jump back to a previous point in an animation. 2016-08-01 00:13:27 -07:00
sairoutine
01d95bd187 added preservation flag 2016-07-20 11:42:57 +09:00
sole
6cb21f2397 fix: Don't interpret string values as relative if they do not start with a sign. Closes #239 and also add tests to define the behaviour of relative values, closes #243 2016-01-12 16:44:42 +00:00
sole
6a6e037e48 fix: do not interpolate properties that do not exist in the source object. Closes #244 2016-01-12 16:12:28 +00:00
sole
37dccbe7e6 fix: implement fix from @benfoxall for 'chained tweens get out of sync with sporadic updates'. Closes #187 2015-09-29 22:36:45 +01:00
sole
be09583e2d feat: Run style tests when running the tests too, via JSCS - closes #222 2015-09-29 21:04:31 +01:00
sole
fabac21abb feat: run correctness test when running tests, via jshint. Closes #225 2015-09-29 17:07:08 +01:00
sole
3e49aecaaf (feat) Remove minified version, fixes #206 2015-09-29 13:51:42 +01:00
Ben Ripkens
0adef8e4a5 Ensure compatibility with ECMAScript 2015 modules
The module evaluation context of ECMAScript 2015 modules is not the
global context. As such `this` does not point to the global `window`
object. This is problematic for users of ECMAScript 2015 modules as the
included `window.performance.now` polyfill will fail to work.

Instead of `this`, the polyfill should be added to the global `window`
object directly. This is unproblematic because the following code
assumes that `performance.now` will be available under the global
`window` object, i.e. the code was never execution environment agnostic.

Furthermore, established polyfills like the one from Paul Irish also
directly register the polyfill on the global `window` object.

Fixes #209

[1] https://gist.github.com/paulirish/5438650
2015-08-27 16:31:04 +02:00
Lukas
143f1976ef Add performance.now polyfill 2015-02-13 16:59:09 +01:00
Soledad Penades
22a8c68fa5 also test minified version automatically 2014-08-05 08:06:08 -07:00
Soledad Penades
ca551982c3 Removed old qunit based tests for clarity and avoiding confusions 2014-08-03 16:34:50 -07:00
Soledad Penades
574f4c36b0 ported TWEEN.Tween tests to nodeunit 2014-08-03 16:32:08 -07:00
Soledad Penades
fb6eeb14b9 Ported TWEEN tests to node unit 2014-08-03 16:12:24 -07:00
Soledad Penades
5c956072f1 proper permissions for travis install script! 2014-08-03 15:58:51 -07:00
Soledad Penades
09cd4896dd travisify 2014-08-03 15:56:16 -07:00
Soledad Penades
565548ca74 port a "serious" test 2014-08-03 15:56:07 -07:00
Soledad Penades
c955377be0 start adding nodeunit-based tests 2014-08-03 15:51:24 -07:00
Soledad Penades
65d78c630c fixing all the spacing. 2014-02-13 23:24:58 +00:00
Soledad Penades
8689ad16fd Add tests for onStop callback functionality 2014-01-05 22:00:55 +01:00
sole
80485bf0c5 Formatting for consistency 2013-10-13 19:09:09 +01:00
cfddream
d8b2deb02c All chained tweens will be stoped when I stop a tween. 2013-10-12 21:56:35 +08:00
Mark Sandstrom
074138c72e Add repeatDelay
repeatDelay is used to control the delay time between each repeat.  This
is useful if, for example, you want to have a 2 second delay between
each repeat but you want the Tween to start immediately. The current
delay method will cause the Tween to delay 2 seconds before starting.
2013-09-05 22:34:46 -07:00
Jonathan Stanton
fa2532d356 Only tween strings, numbers and arrays. 2013-07-31 18:19:24 -07:00
benjamind
5d8f5b765c Added unit test for yoyo functionality. 2013-06-04 09:41:02 -07:00
Endel Dreyer
e103bd0a48 Add tests for tweening values relatively. #72
Don't prevent interpolation of null values or of non-existing
properties. They should now always start as zero.
2013-02-03 14:16:32 -02:00
Endel Dreyer
9170dd3a6e Add support for tweening values relatively. #72
When creating a new Tween instance, all object proprieties is now stored
on '_valuesStart' instance variable, for possible further increment, by
the relative tweening behaviour.

When using 'repeat' method, the start value will be updated at the end
of each animation.

There is a usage example on '09_relative_destination.html'.
2013-02-02 21:04:21 -02:00
sole
e62953932f Add tests for TWEEN.Tween.repeat() 2013-01-31 23:02:21 +00:00
sole
3411354063 Add another test for TWEEN.update() 2013-01-04 10:41:29 +01:00
sole
c5303c1fa0 Add tests for TWEEN object 2013-01-04 10:26:19 +01:00