From: James D. Forrester Date: Sat, 24 May 2014 00:28:10 +0000 (-0700) Subject: jquery.autoEllipsis.test: Swap $.browser for $.client for compatibility X-Git-Tag: 1.31.0-rc.0~15600 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=23563a3c10d394eebed7a4b946e029917161e565;p=lhc%2Fweb%2Fwiklou.git jquery.autoEllipsis.test: Swap $.browser for $.client for compatibility Change-Id: I50d57371edebe7f93f01c83284c0a94fc2e7dbac --- diff --git a/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js b/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js index e1895248f4..842817f582 100644 --- a/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js @@ -48,7 +48,7 @@ // Put this text in the span and verify it doesn't fit $span.text( spanTextNew ); // In IE6 width works like min-width, allow IE6's width to be "equal to" - if ( $.browser.msie && Number( $.browser.version ) === 6 ) { + if ( $.client.test( { 'msie': 6 }, $.client.profile(), true ) ) { assert.gtOrEq( $span.width(), $span.parent().width(), 'Fit is maximal (adding two characters makes it not fit any more) - IE6: Maybe equal to as well due to width behaving like min-width in IE6' ); } else { assert.gt( $span.width(), $span.parent().width(), 'Fit is maximal (adding two characters makes it not fit any more)' );