Skip to content

Commit e5e286e

Browse files
jzaeffererscottgonzalez
authored andcommitted
Datepicker tests: Allow IE7 to return an absolute URL in the .attr('src') call
(cherry picked from commit 6d7a614)
1 parent 3f055d4 commit e5e286e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/datepicker/datepicker_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ asyncTest( "invocation", function() {
166166
ok( button.length === 0, "Image button - button absent" );
167167
image = inp.siblings( "img" );
168168
ok( image.length === 1, "Image button - image present" );
169-
equal( image.attr( "src" ), "images/calendar.gif", "Image button - image source" );
169+
ok( /images\/calendar\.gif$/.test( image.attr( "src" ) ), "Image button - image source" );
170170
equal( image.attr( "title" ), "Cal", "Image button - image text" );
171171

172172
TestHelpers.datepicker.onFocus( inp, function() {

0 commit comments

Comments
 (0)