@@ -38,9 +38,9 @@ module.exports = {
3838
3939 // The order here is a bit brittle: because the transition has zero delay,
4040 // it's invoking the start event immediately for all nodes, rather than
41- // pushing each node onto the timer queue (which would reverse the order of
42- // callbacks). The order in which tweens are invoked is undefined, so perhaps
43- // we should sort the expected and actual values before comparing.
41+ // pushing each node onto the timer queue. The order in which tweens are
42+ // invoked is undefined (see #1245), so perhaps we should sort the expected
43+ // and actual values before comparing.
4444
4545 "defines the corresponding style tween" : function ( result ) {
4646 assert . typeOf ( result . transition . tween ( "style.background-color" ) , "function" ) ;
@@ -49,11 +49,11 @@ module.exports = {
4949 assert . equal ( result . fails , 0 ) ;
5050 } ,
5151 "invokes the tween function" : function ( result ) {
52- assert . deepEqual ( result . data , [ "green " , "red " ] , "expected data, got {actual}" ) ;
53- assert . deepEqual ( result . index , [ 1 , 0 ] , "expected index, got {actual}" ) ;
54- assert . deepEqual ( result . value , [ "#008000 " , "#ff0000 " ] , "expected value, got {actual}" ) ;
55- assert . domEqual ( result . context [ 0 ] , result . selection [ 0 ] [ 1 ] , "expected this, got {actual}" ) ;
56- assert . domEqual ( result . context [ 1 ] , result . selection [ 0 ] [ 0 ] , "expected this, got {actual}" ) ;
52+ assert . deepEqual ( result . data , [ "red " , "green " ] , "expected data, got {actual}" ) ;
53+ assert . deepEqual ( result . index , [ 0 , 1 ] , "expected index, got {actual}" ) ;
54+ assert . deepEqual ( result . value , [ "#ff0000 " , "#008000 " ] , "expected value, got {actual}" ) ;
55+ assert . domEqual ( result . context [ 0 ] , result . selection [ 0 ] [ 0 ] , "expected this, got {actual}" ) ;
56+ assert . domEqual ( result . context [ 1 ] , result . selection [ 0 ] [ 1 ] , "expected this, got {actual}" ) ;
5757 } ,
5858
5959 "end" : {
0 commit comments