diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-05-05 07:59:12 -0700 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-05-05 07:59:26 -0700 |
commit | 17ce9edf1e60f14983b4ff970c9511689c876d5c (patch) | |
tree | 76fdd3648976335fdc20a2f764d7e6996893c97a /test/unit | |
parent | d9d930f79e9e4edb7339199cd758dc654e053a3b (diff) | |
download | jquery-17ce9edf1e60f14983b4ff970c9511689c876d5c.tar.gz jquery-17ce9edf1e60f14983b4ff970c9511689c876d5c.zip |
Selector: add test for jQuery.unique() alias
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/selector.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 19b2c2210..c290df017 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -386,7 +386,7 @@ test( "jQuery.contains", function() { }); test("jQuery.uniqueSort", function() { - expect( 14 ); + expect( 15 ); function Arrayish( arr ) { var i = this.length = arr.length; @@ -462,6 +462,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 ) { |