Show
Ignore:
Timestamp:
04/24/07 04:19:59 (21 months ago)
Author:
alex
Message:

tests.* -> doh.*. A big (but separate) checkin is coming for Core tests to make them conform. Refs #2795

Files:
1 modified

Legend:

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

    r8259 r8261  
    66        <!-- 
    77                // TODO: need to provide UI controls for turning audio on and off 
    8                 // TODO: implement global scrollbarl 
     8                // TODO: implement global progress bar 
    99                // TODO: ensure that test groups are "folded up" by default but can be opened on a click 
    10                 // TODO: provide way to extract this system from the rest of Dojo easily 
    1110        --> 
    1211        <head> 
    1312                <title>The Dojo Unit Test Harness, $Rev$</title> 
    14                 <script type="text/javascript" src="../dojo.js"   
    15                         djConfig="isDebug: true"></script> 
     13                <script type="text/javascript"> 
     14                        var dojoUrl = "../../dojo/dojo.js"; 
     15                        var testUrl = ""; 
     16                        var testModule = ""; 
     17 
     18                        // parse out our test URL and our Dojo URL from the query string 
     19                        var qstr = window.location.search.substr(1); 
     20                        if(qstr.length){ 
     21                                var qparts = qstr.split("&"); 
     22                                for(var x=0; x<qparts.length; x++){ 
     23                                        var tp = qparts[x].split("="); 
     24                                        if(tp[0] == "dojoUrl"){ 
     25                                                dojoUrl = tp[1]; 
     26                                        } 
     27                                        if(tp[0] == "testUrl"){ 
     28                                                testUrl = tp[1]; 
     29                                        } 
     30                                        if(tp[0] == "testModule"){ 
     31                                                testModule = tp[1]; 
     32                                        } 
     33                                } 
     34                        } 
     35 
     36                        document.write("<scr"+"ipt type='text/javascript' djConfig='isDebug: true' src='"+dojoUrl+"'></scr"+"ipt>"); 
     37                </script> 
    1638                <script type="text/javascript"> 
    1739                        try{ 
    18                                 dojo.require("tests.runner"); 
     40                                dojo.require("doh.runner"); 
    1941                        }catch(e){ 
    2042                                document.write("<scr"+"ipt type='text/javascript' src='runner.js'></scr"+"ipt>"); 
    21                                 // document.write("<scr"+"ipt type='text/javascript'>tests.selfTest = true;</scr"+"ipt>"); 
    2243                                document.write("<scr"+"ipt type='text/javascript' src='_browserRunner.js'></scr"+"ipt>"); 
     44                        } 
     45                        if(testUrl.length){ 
     46                                document.write("<scr"+"ipt type='text/javascript' src='"+testUrl+".js'></scr"+"ipt>"); 
    2347                        } 
    2448                </script> 
    2549                <style type="text/css"> 
    26                         @import "../resources/dojo.css"; 
     50                        @import "http://svn.dojotoolkit.org/dojo/dojo/trunk/resources/dojo.css"; 
    2751                        /* 
    2852                        body { 
     
    187211                        <tr valign="top" height="30"> 
    188212                                <td width="30%" class="header"> 
    189                                         <span id="toggleButtons" onclick="tests.togglePaused();"> 
     213                                        <span id="toggleButtons" onclick="doh.togglePaused();"> 
    190214                                                <button id="play">&#052;</button> 
    191215                                                <button id="pause" style="display: none;">&#059;</button>