Skip to content

Commit

Permalink
Selector: add test for jQuery.unique() alias
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed May 5, 2015
1 parent e1090c3 commit add85af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/selector.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit add85af

Please sign in to comment.