]> source.dussan.org Git - jquery.git/commitdiff
Tests: Correct expected assertion count
authorRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 05:37:47 +0000 (01:37 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 05:37:47 +0000 (01:37 -0400)
Ref e94b5b0bbf8d8179bc79ab749470e71092225862

test/unit/offset.js

index b128d3347e85367ac486e4fc7c7705ad5b52170f..d1fad57fa24eb9d2780b012609ab987f5b451df8 100644 (file)
@@ -667,7 +667,7 @@ QUnit.test( "chaining", function( assert ) {
                                        scrollLeft = win.pageXOffset,
                                        expectations = getExpectations( htmlPos, bodyPos, scrollTop, scrollLeft );
 
-                               assert.expect( 1 + 3 * Object.keys( expectations ).length );
+                               assert.expect( 3 * Object.keys( expectations ).length );
 
                                // Setup documentElement and body styles, preserving scroll position
                                doc.documentElement.style.position = htmlPos;