dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git]
/
tests
/
qunit
/
suites
/
resources
/
mediawiki.api
/
mediawiki.api.watch.test.js
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
e178090
..
64a5184
100644
(file)
--- 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 () {
( function ( mw ) {
QUnit.module( 'mediawiki.api.watch', QUnit.newMwEnvironment( {
setup: function () {
- this.clock = this.sandbox.useFakeTimers();
this.server = this.sandbox.useFakeServer();
this.server = this.sandbox.useFakeServer();
- },
- teardown: function () {
- this.clock.tick( 1 );
}
} ) );
}
} ) );
@@
-21,12
+17,12
@@
} );
api.watch( [ 'Foo' ] ).done( function ( items ) {
} );
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 ) {
} );
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
} );
// Requests are POST, match requestBody instead of url