]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker tests: Allow IE7 to return an absolute URL in the .attr('src') call
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 25 Nov 2013 15:25:39 +0000 (16:25 +0100)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 21:00:37 +0000 (16:00 -0500)
(cherry picked from commit 6d7a61478f143b955807d357c210de8f0390f274)

tests/unit/datepicker/datepicker_options.js

index 25257e99faf2591bd797397dcaf2492e9f7f5e36..b5dd4cac2889003115ecb42eca8507a531edda87 100644 (file)
@@ -166,7 +166,7 @@ asyncTest( "invocation", function() {
                ok( button.length === 0, "Image button - button absent" );
                image = inp.siblings( "img" );
                ok( image.length === 1, "Image button - image present" );
-               equal( image.attr( "src" ), "images/calendar.gif", "Image button - image source" );
+               ok( /images\/calendar\.gif$/.test( image.attr( "src" ) ), "Image button - image source" );
                equal( image.attr( "title" ), "Cal", "Image button - image text" );
 
                TestHelpers.datepicker.onFocus( inp, function() {