From: Timmy Willison Date: Tue, 5 May 2015 14:59:12 +0000 (-0700) Subject: Selector: add test for jQuery.unique() alias X-Git-Tag: 3.0.0-alpha1~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=add85afed5944ec10d68ca10e91421e031fe0a5d;p=jquery.git Selector: add test for jQuery.unique() alias --- diff --git a/test/unit/selector.js b/test/unit/selector.js index ee117ca8f..0edaa0c79 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -387,7 +387,7 @@ test( "jQuery.contains", function() { }); test("jQuery.uniqueSort", function() { - expect( 14 ); + expect( 15 ); function Arrayish( arr ) { var i = this.length = arr.length; @@ -463,6 +463,8 @@ test("jQuery.uniqueSort", function() { deepEqual( jQuery.uniqueSort( test.input ).slice( 0, length ), test.expected, label + " (array)" ); deepEqual( jQuery.uniqueSort( new Arrayish(test.input) ).slice( 0, length ), test.expected, label + " (quasi-array)" ); }); + + strictEqual( jQuery.unique, jQuery.uniqueSort, "jQuery.unique() is an alias for jQuery.uniqueSort()" ); }); testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {