Merge "LocalSettings.php must be readable by the server"
[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.asyncTest( 'animate', 3, function ( assert ) {
5 var $canvas = $( '<div>' ).css( 'background-color', '#fff' );
6
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 );
12 QUnit.start();
13 } );
14 } );
15 }( jQuery ) );