Changeset 7628

Show
Ignore:
Timestamp:
03/17/07 14:23:19 (22 months ago)
Author:
alex
Message:

updating with Brian Skinner's excellent suggestions. Refs #2550

Location:
dojo/trunk/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/tests/runner.js

    r7624 r7628  
    401401} 
    402402 
    403 tests.add = function(groupOrNs, testOrNull){ 
     403// FIXME: remove the tests.add alias SRTL. 
     404tests.register = tests.add = function(groupOrNs, testOrNull){ 
    404405        // summary: 
    405406        //              "magical" variant of registerTests, registerTest, and 
     
    411412        } 
    412413        if(arguments.length == 1){ 
    413                 this.debug("invalid args passed to tests.add():", groupOrNs, ",", testOrNull); 
     414                this.debug("invalid args passed to tests.register():", groupOrNs, ",", testOrNull); 
    414415                return; 
    415416        } 
  • dojo/trunk/tests/_base.js

    r7624 r7628  
    88var testGlobal = this; 
    99 
    10 tests.add("tests.smokeTest",  
     10tests.register("tests.smokeTest",  
    1111        [ 
    1212                function sanityCheckHarness(t){ 
     
    5454 
    5555if(this["dojo"]){ 
    56         tests.add("tests._base",  
     56        tests.register("tests._base",  
    5757                [ 
    5858                        function dojoIsAvailable(t){ 
     
    6565if(this["setTimeout"]){ 
    6666        // a stone-stupid async test 
    67         tests.add("tests.async",  
     67        tests.register("tests.async",  
    6868                [ 
    6969                        {