Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Also make module filter case-insensitive. Follow-up to #252
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 29 Jun 2012 04:19:25 +0000 (21:19 -0700)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 29 Jun 2012 04:19:25 +0000 (21:19 -0700)
qunit/qunit.js

index 478737a..b34bc3c 100644 (file)
@@ -1061,14 +1061,14 @@ function done() {
 function validTest( test ) {
        var include,
                filter = config.filter && config.filter.toLowerCase(),
-               module = config.module,
+               module = config.module && config.module.toLowerCase(),
                fullName = (test.module + ": " + test.testName).toLowerCase();
 
        if ( config.testNumber ) {
                return test.testNumber === config.testNumber;
        }
 
-       if ( module && test.module !== module ) {
+       if ( module && ( !test.module || test.module.toLowerCase() !== module ) ) {
                return false;
        }
 

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf