Skip to content
This repository
Browse code

labels for tests deep object animation and layer.removeFrame #56

  • Loading branch information...
commit 0b51a4a3fccc8683397a9f97a1b7532d0208a39b 1 parent 45574f7
Michael "Z" Goddard mzgoddard authored

Showing 1 changed file with 12 additions and 14 deletions. Show diff stats Hide diff stats

  1. +12 14 test/unit/abacus.animation.js
26 test/unit/abacus.animation.js
@@ -61,28 +61,28 @@ test('layer.removeFrame', 8, function() {
61 61
62 62 layer.step( {rate: 5}, obj, {sinceStart: 1000} );
63 63
64   - equal( obj.x, 0.5 );
65   - equal( obj.y, 0.5 );
  64 + equal( obj.x, 0.5, 'x value in between first two frames' );
  65 + equal( obj.y, 0.5, 'y value in between first two frames' );
66 66
67 67 layer.removeFrame( 10 );
68 68
69 69 layer.step( {rate: 5}, obj, {sinceStart: 1000} );
70 70
71   - equal( obj.x, 1 );
72   - equal( obj.y, 1 );
  71 + equal( obj.x, 1, 'x value in between first and third frames (after removal of second frame)' );
  72 + equal( obj.y, 1, 'y value in between first and third frames (after removal of second frame)' );
73 73
74 74 layer.step( {rate: 5}, obj, {sinceStart: 8000} );
75 75
76   - equal( obj.x, 8 );
77   - equal( obj.y, 8 );
  76 + equal( obj.x, 8, 'x value at end of fourth frame' );
  77 + equal( obj.y, 8, 'y value at end of fourth frame' );
78 78
79 79 layer.removeFrame( fourthFrame );
80 80
81 81 layer.reset();
82 82 layer.step( {rate: 5}, obj, {sinceStart: 8000} );
83 83
84   - equal( obj.x, 4 );
85   - equal( obj.y, 4 );
  84 + equal( obj.x, 4, 'x value at end of third frame (after removal of third)' );
  85 + equal( obj.y, 4, 'y value at end of third frame (after removal of third)' );
86 86 });
87 87
88 88 test('layer sets values after hitting end of last frame', 2, function(){
@@ -293,13 +293,11 @@ test('deep object animation', 2, function() {
293 293 }
294 294 }
295 295 });
296   -
297   - console.log( layer );
298   -
  296 +
299 297 layer.step({ rate: 5 }, obj, { sinceStart: 2000 });
300   -
  298 +
301 299 equal( obj.x, 6 );
302   -
  300 +
303 301 deepEqual( obj, {
304 302 x: 6,
305 303 ary: [ 1, 2, 3 ],
@@ -312,7 +310,7 @@ test('deep object animation', 2, function() {
312 310 y: 5
313 311 }]
314 312 }
315   - });
  313 + }, 'deep object animation set all appropriate values' );
316 314 });
317 315
318 316 test('layer works with typed arrays', 7, function() {

0 comments on commit 0b51a4a

Please sign in to comment.
Something went wrong with that request. Please try again.