mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker test: Ignore flaky test in IE in TestSwarm.
This commit is contained in:
parent
72f29a111a
commit
5494bc9b2e
@ -87,9 +87,18 @@ test("change", function() {
|
||||
equal($.datepicker._defaults.showOn, "focus", "Retain default showOn");
|
||||
});
|
||||
|
||||
asyncTest( "invocation", function() {
|
||||
(function() {
|
||||
var url = window.location.search;
|
||||
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + 9 ) );
|
||||
|
||||
// TODO: This test occassionally fails in IE in TestSwarm
|
||||
if ( $.ui.ie && url && url.indexOf( "http" ) === 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
asyncTest( "invocation", function() {
|
||||
var button, image,
|
||||
isOldIE = $.ui.ie && ( !document.documentMode || document.documentMode < 10 ),
|
||||
isOldIE = $.ui.ie && ( !document.documentMode || document.documentMode < 9 ),
|
||||
body = $( "body" );
|
||||
|
||||
expect( isOldIE ? 25 : 29 );
|
||||
@ -196,7 +205,7 @@ asyncTest( "invocation", function() {
|
||||
image = button.children( "img" );
|
||||
ok( image.length === 1, "Both - button image present" );
|
||||
|
||||
// TODO: This test occasionally fails to focus in IE in TestSwarm
|
||||
// TODO: This test occasionally fails to focus in IE8 in BrowserStack
|
||||
if ( !isOldIE ) {
|
||||
TestHelpers.datepicker.onFocus( inp, function() {
|
||||
ok( dp.is( ":visible" ), "Both - rendered on focus" );
|
||||
@ -216,7 +225,8 @@ asyncTest( "invocation", function() {
|
||||
}
|
||||
|
||||
step0();
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
test("otherMonths", function() {
|
||||
expect( 8 );
|
||||
|
Loading…
Reference in New Issue
Block a user