2 QUnit
.module( 'jquery.color', QUnit
.newMwEnvironment() );
4 QUnit
.test( 'animate', function ( assert
) {
5 var done
= assert
.async(),
6 $canvas
= $( '<div>' ).css( 'background-color', '#fff' ).appendTo( '#qunit-fixture' );
8 $canvas
.animate( { 'background-color': '#000' }, 3 ).promise()
10 var endColors
= $.colorUtil
.getRGB( $canvas
.css( 'background-color' ) );
11 assert
.deepEqual( endColors
, [ 0, 0, 0 ], 'end state' );