jquery.autoEllipsis.test: Swap $.browser for $.client for compatibility
authorJames D. Forrester <jforrester@wikimedia.org>
Sat, 24 May 2014 00:28:10 +0000 (17:28 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Sat, 24 May 2014 00:35:32 +0000 (17:35 -0700)
Change-Id: I50d57371edebe7f93f01c83284c0a94fc2e7dbac

tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js

index e189524..842817f 100644 (file)
@@ -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)' );