2 QUnit
.module( 'jquery.color', QUnit
.newMwEnvironment() );
4 QUnit
.asyncTest( 'animate', 3, function ( assert
) {
5 var $canvas
= $( '<div>' ).css( 'background-color', '#fff' );
7 $canvas
.animate( { backgroundColor
: '#000' }, 4 ).promise().then( function() {
8 var endColors
= $.colorUtil
.getRGB( $canvas
.css( 'background-color' ) );
9 assert
.strictEqual( endColors
[0], 0 );
10 assert
.strictEqual( endColors
[1], 0 );
11 assert
.strictEqual( endColors
[2], 0 );