X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki.api%2Fmediawiki.api.watch.test.js;h=64a51847110e57faa6281505b2f3723e32c73e3a;hp=e1780903be5b6ff01da9f5d9f1c3066963220bcd;hb=f8659ae6ea90d7bc8ce28bfc1caa56153878836f;hpb=8f12ae314af362c6f495188564618732f944538c diff --git a/tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js b/tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js index e1780903be..64a5184711 100644 --- a/tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js +++ b/tests/qunit/suites/resources/mediawiki.api/mediawiki.api.watch.test.js @@ -1,11 +1,7 @@ ( function ( mw ) { QUnit.module( 'mediawiki.api.watch', QUnit.newMwEnvironment( { setup: function () { - this.clock = this.sandbox.useFakeTimers(); this.server = this.sandbox.useFakeServer(); - }, - teardown: function () { - this.clock.tick( 1 ); } } ) ); @@ -21,12 +17,12 @@ } ); api.watch( [ 'Foo' ] ).done( function ( items ) { - assert.equal( items[0].title, 'Foo' ); + assert.equal( items[ 0 ].title, 'Foo' ); } ); api.watch( [ 'Foo', 'Bar' ] ).done( function ( items ) { - assert.equal( items[0].title, 'Foo' ); - assert.equal( items[1].title, 'Bar' ); + assert.equal( items[ 0 ].title, 'Foo' ); + assert.equal( items[ 1 ].title, 'Bar' ); } ); // Requests are POST, match requestBody instead of url