From 23563a3c10d394eebed7a4b946e029917161e565 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Fri, 23 May 2014 17:28:10 -0700 Subject: [PATCH] jquery.autoEllipsis.test: Swap $.browser for $.client for compatibility Change-Id: I50d57371edebe7f93f01c83284c0a94fc2e7dbac --- tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)' ); -- 2.20.1