qunit: Use default (~1-4ms) delay instead of 10ms or 150ms
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Mar 2015 23:15:40 +0000 (00:15 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Mar 2015 23:22:58 +0000 (00:22 +0100)
* jquery.byteLimit: Speeds up test suite from 425ms to about 275s.
* mediawiki: Speeds up test suite from 870ms to 350ms.

(Measures as reported by QUnit, using Chrome on OSX with a MacBook Pro)

Change-Id: Ia8db228219175c1aea6eb1b1edacf521494d3bdb

tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js

index 22d2af1..0cb9cc8 100644 (file)
@@ -60,7 +60,7 @@
                                );
 
                                QUnit.start();
-                       }, 10 );
+                       } );
                } );
        }
 
index 4a5705a..18db7f1 100644 (file)
                                return;
                        }
                        // Otherwise, keep polling
-                       setTimeout( styleTestLoop, 150 );
+                       setTimeout( styleTestLoop );
                }
 
                // Start the loop