Merge "mediawiki.Uri: Add another test for arrayParams"
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.requestIdleCallback.test.js
index 7a09964..7b25707 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw ) {
+( function () {
        QUnit.module( 'mediawiki.requestIdleCallback', QUnit.newMwEnvironment( {
                setup: function () {
                        var clock = this.clock = this.sandbox.useFakeTimers();
@@ -95,8 +95,9 @@
        if ( window.requestIdleCallback ) {
                QUnit.test( 'native', function ( assert ) {
                        var done = assert.async();
-                       // Remove polyfill
+                       // Remove polyfill and clock stub
                        mw.requestIdleCallback.restore();
+                       this.clock.restore();
                        mw.requestIdleCallback( function () {
                                assert.expect( 0 );
                                done();
                } );
        }
 
-}( mediaWiki ) );
+}() );