Datepicker tests: Allow IE7 to return an absolute URL in the .attr('src') call

(cherry picked from commit 6d7a61478f)
This commit is contained in:
Jörn Zaefferer 2013-11-25 16:25:39 +01:00 committed by Scott González
parent 3f055d4a58
commit e5e286ef4e

View 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() {