X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki%2Fmediawiki.viewport.test.js;h=2c639b79a3bb2608b5ea182911e8e648328b20a3;hp=f40429421517d0059765a68f392cd4f09ecfd433;hb=6f3d5a5204770b7e9076ec0c956631c32a9e1114;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06 diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.viewport.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.viewport.test.js index f404294215..2c639b79a3 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.viewport.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.viewport.test.js @@ -1,4 +1,4 @@ -( function ( mw, $ ) { +( function () { // Simulate square element with 20px long edges placed at (20, 20) on the page var @@ -25,7 +25,7 @@ } } ) ); - QUnit.test( 'isElementInViewport', 6, function ( assert ) { + QUnit.test( 'isElementInViewport', function ( assert ) { var viewport = $.extend( {}, DEFAULT_VIEWPORT ); assert.ok( mw.viewport.isElementInViewport( this.el, viewport ), 'It should return true when the element is fully enclosed in the viewport' ); @@ -60,7 +60,7 @@ 'It should default to the window object if no viewport is given' ); } ); - QUnit.test( 'isElementInViewport with scrolled page', 1, function ( assert ) { + QUnit.test( 'isElementInViewport with scrolled page', function ( assert ) { var viewport = { top: 2000, left: 0, @@ -83,7 +83,7 @@ window.scrollTo( 0, 0 ); } ); - QUnit.test( 'isElementCloseToViewport', 3, function ( assert ) { + QUnit.test( 'isElementCloseToViewport', function ( assert ) { var viewport = { top: 90, @@ -109,4 +109,4 @@ 'It should default to a threshold of 50px and the window\'s viewport' ); } ); -}( mediaWiki, jQuery ) ); +}() );