From: Timo Tijhof Date: Fri, 28 Feb 2014 21:29:55 +0000 (+0100) Subject: Remove tests for jquery.delayedBind (deprecated) X-Git-Tag: 1.31.0-rc.0~16720^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=bea6ea98a6cb887aa95adfeeea82bd39c88d8606;p=lhc%2Fweb%2Fwiklou.git Remove tests for jquery.delayedBind (deprecated) It's slated to be removed and deprecation warnings are polluting test output. Change-Id: I880d75874926f0945f9aba72cc176fb6eda6195b --- diff --git a/tests/qunit/QUnitTestResources.php b/tests/qunit/QUnitTestResources.php index f6748198e6..33ff2fbc7d 100644 --- a/tests/qunit/QUnitTestResources.php +++ b/tests/qunit/QUnitTestResources.php @@ -44,7 +44,6 @@ return array( 'tests/qunit/suites/resources/jquery/jquery.client.test.js', 'tests/qunit/suites/resources/jquery/jquery.color.test.js', 'tests/qunit/suites/resources/jquery/jquery.colorUtil.test.js', - 'tests/qunit/suites/resources/jquery/jquery.delayedBind.test.js', 'tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js', 'tests/qunit/suites/resources/jquery/jquery.hidpi.test.js', 'tests/qunit/suites/resources/jquery/jquery.highlightText.test.js', diff --git a/tests/qunit/suites/resources/jquery/jquery.delayedBind.test.js b/tests/qunit/suites/resources/jquery/jquery.delayedBind.test.js deleted file mode 100644 index 234b19cbde..0000000000 --- a/tests/qunit/suites/resources/jquery/jquery.delayedBind.test.js +++ /dev/null @@ -1,37 +0,0 @@ -( function ( $ ) { - QUnit.asyncTest( 'jquery.delayedBind with data option', 2, function ( assert ) { - var $fixture = $( '
' ).appendTo( '#qunit-fixture' ), - data = { - magic: 'beeswax' - }, - delay = 50; - - $fixture.delayedBind( delay, 'testevent', data, function ( e ) { - assert.ok( true, 'testevent fired' ); - assert.ok( e.data === data, 'data is passed through delayedBind' ); - QUnit.start(); - } ); - - // We'll trigger it thrice, but it should only happen once. - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - } ); - - QUnit.asyncTest( 'jquery.delayedBind without data option', 1, function ( assert ) { - var $fixture = $( '
' ).appendTo( '#qunit-fixture' ), - delay = 50; - - $fixture.delayedBind( delay, 'testevent', function () { - assert.ok( true, 'testevent fired' ); - QUnit.start(); - } ); - - // We'll trigger it thrice, but it should only happen once. - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - $fixture.trigger( 'testevent', {} ); - } ); -}( jQuery ) );