2 QUnit
.module( 'jquery.color', QUnit
.newMwEnvironment( {
4 this.clock
= this.sandbox
.useFakeTimers();
8 QUnit
.test( 'animate', 1, function ( assert
) {
9 var $canvas
= $( '<div>' ).css( 'background-color', '#fff' );
11 $canvas
.animate( { backgroundColor
: '#000' }, 10 ).promise().then( function () {
12 var endColors
= $.colorUtil
.getRGB( $canvas
.css( 'background-color' ) );
13 assert
.deepEqual( endColors
, [ 0, 0, 0 ], 'end state' );
16 this.clock
.tick( 20 );