Changeset 7892

Show
Ignore:
Timestamp:
04/01/07 14:21:30 (22 months ago)
Author:
alex
Message:

creating t, f, and is aliases for assertTrue, assertFalse, and assertEqual (respectively). I'm getting really freaking sick of typing the long names. Refs #2550

Files:
1 modified

Legend:

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

    r7887 r7892  
    397397                                name: test.replace("/\s/g", "_") 
    398398                        }; 
    399                         tObj.runTest = new Function(test); 
     399                        tObj.runTest = new Function("t", test); 
    400400                } 
    401401        }else if(typeof test == "function"){ 
     
    504504// 
    505505 
    506 tests.assertTrue = function(/*Object*/ condition){ 
     506tests.t = tests.assertTrue = function(/*Object*/ condition){ 
    507507        // summary: 
    508508        //              is the passed item "truthy"? 
     
    512512} 
    513513 
    514 tests.assertFalse = function(/*Object*/ condition){ 
     514tests.f = tests.assertFalse = function(/*Object*/ condition){ 
    515515        // summary: 
    516516        //              is the passed item "falsey"? 
     
    520520} 
    521521 
    522 tests.assertEqual = function(/*Object*/ expected, /*Object*/ actual){ 
     522tests.is = tests.assertEqual = function(/*Object*/ expected, /*Object*/ actual){ 
    523523        // summary: 
    524524        //              are the passed expected and actual objects/values deeply