Changeset 7894

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

seems the cleanup was throwing errors. Fixes getObject() tests on IE. Refs #2500

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/tests/_base/_loader/bootstrap.js

    r7691 r7894  
    3434                                //Test for existing object using global as root path. 
    3535                                var globalVar = dojo.getObject("globalValue"); 
    36                                 t.assertTrue(typeof(globalVar) == "object"); 
     36                                t.is("object", (typeof globalVar)); 
    3737                                t.assertEqual("blue", globalVar.color); 
    3838                                t.assertEqual(20, globalVar.size); 
     
    5959                                //Clean up global object that should not exist if 
    6060                                //the test is re-run. 
    61                                 delete dojo.global().something; 
    62                                 delete this.something; 
     61                                try{ 
     62                                        delete dojo.global().something; 
     63                                        delete this.something; 
     64                                }catch(e){} 
    6365                        } 
    6466                },