MCPcopy Index your code
hub / github.com/CreateJS/TweenJS / addTest

Function addTest

tests/spec/TweenSpec.js:263–277  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

261 }
262
263 function addTest(test) {
264 test.tween.test = test;
265 test.tween.paused = true; // needs to be here for timeline tests.
266 it (test.name, function(done) {
267 var tween = test.tween;
268 tween.paused = false;
269 if (test.gotoAndStop != null) {
270 tween.gotoAndStop(test.gotoAndStop);
271 evaluate(tween, done);
272 } else {
273 tween.on("complete", function(evt) { evaluate(evt.target, done); })
274 if (test.gotoAndPlay != null) { tween.gotoAndPlay(test.gotoAndPlay); }
275 }
276 });
277 }
278
279 function trace(val) {
280 if (!this.out) { this.out = val; }

Callers 1

TweenSpec.jsFile · 0.85

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected