Merge "user: Allow "CAS update failed" exceptions to be normalised"
[lhc/web/wiklou.git] / tests / qunit / suites / resources / jquery / jquery.color.test.js
1 ( function () {
2 QUnit.module( 'jquery.color', QUnit.newMwEnvironment() );
3
4 QUnit.test( 'animate', function ( assert ) {
5 var done = assert.async(),
6 $canvas = $( '<div>' ).css( 'background-color', '#fff' ).appendTo( '#qunit-fixture' );
7
8 $canvas.animate( { 'background-color': '#000' }, 3 ).promise()
9 .done( function () {
10 var endColors = $.colorUtil.getRGB( $canvas.css( 'background-color' ) );
11 assert.deepEqual( endColors, [ 0, 0, 0 ], 'end state' );
12 } )
13 .always( done );
14 } );
15 }() );