Merge "Drop zh-tw message "saveprefs""
[lhc/web/wiklou.git] / tests / qunit / suites / resources / jquery / jquery.color.test.js
1 ( function ( $ ) {
2 QUnit.module( 'jquery.color', QUnit.newMwEnvironment( {
3 setup: function () {
4 this.clock = this.sandbox.useFakeTimers();
5 }
6 } ) );
7
8 QUnit.test( 'animate', 1, function ( assert ) {
9 var $canvas = $( '<div>' ).css( 'background-color', '#fff' );
10
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' );
14 } );
15
16 this.clock.tick( 20 );
17 } );
18 }( jQuery ) );