Changeset 14122 for util/trunk/doh

Show
Ignore:
Timestamp:
06/23/08 23:47:40 (5 months ago)
Author:
alex
Message:

update DOH runner to not barf if dojox isn't available in a Dojo environment. Fixes #7035 !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/trunk/doh/runner.js

    r14045 r14122  
    508508(function(){ 
    509509        if(typeof dojo != "undefined"){ 
    510                 dojo.require("dojox.testing.DocTest"); 
     510                try{ 
     511                        dojo.require("dojox.testing.DocTest"); 
     512                }catch(e){ 
     513                        // if the DocTest module isn't available (e.g., the build we're 
     514                        // running from doesn't include it), stub it out and log the error 
     515                        console.debug(e); 
     516 
     517                        doh.registerDocTests = function(){} 
     518                        return; 
     519                } 
    511520                doh.registerDocTests = function(module){ 
    512521                        //      summary: