diff --git a/test/unit/effects.js b/test/unit/effects.js index 3c89a3831..18a64908f 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -395,9 +395,20 @@ test("animate table-row width/height", function() { }); test("animate table-cell width/height", function() { - expect(3); - var displayMode, - td = jQuery("#table") + // Support: Chrome 31. + // Chrome 31 reports incorrect offsetWidth on a table cell with fixed width. + // This is fixed in Chrome 32 so let's just skip the failing test in Chrome 31. + // See https://code.google.com/p/chromium/issues/detail?id=290399 + var displayMode, td, + chrome31 = navigator.userAgent.indexOf( " Chrome/31." ) !== -1; + + if (chrome31) { + expect(2); + } else { + expect(3); + } + + td = jQuery("#table") .attr({ "cellspacing": 0, "cellpadding": 0, "border": 0 }) .html("