Skip to content

Commit 17ce9ed

Browse files
committed
Selector: add test for jQuery.unique() alias
1 parent d9d930f commit 17ce9ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/selector.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ test( "jQuery.contains", function() {
386386
});
387387

388388
test("jQuery.uniqueSort", function() {
389-
expect( 14 );
389+
expect( 15 );
390390

391391
function Arrayish( arr ) {
392392
var i = this.length = arr.length;
@@ -462,6 +462,8 @@ test("jQuery.uniqueSort", function() {
462462
deepEqual( jQuery.uniqueSort( test.input ).slice( 0, length ), test.expected, label + " (array)" );
463463
deepEqual( jQuery.uniqueSort( new Arrayish(test.input) ).slice( 0, length ), test.expected, label + " (quasi-array)" );
464464
});
465+
466+
strictEqual( jQuery.unique, jQuery.uniqueSort, "jQuery.unique() is an alias for jQuery.uniqueSort()" );
465467
});
466468

467469
testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {

0 commit comments

Comments
 (0)