]> source.dussan.org Git - jquery.git/commitdiff
Landing pull request 561. only check for not null in unit tests. Supplements #8388.
authorMike Sherov <mike.sherov@gmail.com>
Sun, 23 Oct 2011 19:31:50 +0000 (15:31 -0400)
committertimmywil <timmywillisn@gmail.com>
Sun, 23 Oct 2011 19:31:50 +0000 (15:31 -0400)
More Details:
 - https://github.com/jquery/jquery/pull/561
 - http://bugs.jquery.com/ticket/8388

test/unit/css.js

index 7e9509593cde0ad223c1ecfe05c0e504593b9a0b..ff1bb264181821f9eb1a92578ce4a1230d1e4e96 100644 (file)
@@ -505,7 +505,7 @@ test("widows & orphans #8936", function () {
 test("can't get css for disconnected in IE<9, see #10254 and #8388", function() {
        expect( 2 );
        var span = jQuery( "<span/>" ).css( "background-image", "url(http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif)" );
-       equal( span.css( "background-image" ), "url(http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif)", "can't get background-image in IE<9, see #10254" );
+       notEqual( span.css( "background-image" ), null, "can't get background-image in IE<9, see #10254" );
 
        var div = jQuery( "<div/>" ).css( "top", 10 );
        equal( div.css( "top" ), "10px", "can't get top in IE<9, see #8388" );