Changeset 7879
- Timestamp:
- 03/31/07 14:27:09 (22 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/tests/_browserRunner.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/_browserRunner.js
r7847 r7879 188 188 tests._groupStarted = function(group){ 189 189 // console.debug("_groupStarted", group); 190 getGroupNode(group).className = "inProgress"; 190 var gn = getGroupNode(group); 191 if(gn){ 192 gn.className = "inProgress"; 193 } 191 194 } 192 195 193 196 tests._groupFinished = function(group, success){ 194 197 // console.debug("_groupFinished", group); 195 getGroupNode(group).className = (success) ? "success" : "failure"; 198 var gn = getGroupNode(group); 199 if(gn){ 200 gn.className = (success) ? "success" : "failure"; 201 } 196 202 } 197 203 198 204 tests._testStarted = function(group, fixture){ 199 205 // console.debug("_testStarted", group, fixture.name); 200 getFixtureNode(group, fixture).className = "inProgress"; 206 var fn = getFixtureNode(group, fixture); 207 if(fn){ 208 fn.className = "inProgress"; 209 } 201 210 fixture.startTime = new Date(); 202 211 } … … 204 213 tests._testFinished = function(group, fixture, success){ 205 214 var fn = getFixtureNode(group, fixture); 206 fn.getElementsByTagName("td")[2].innerHTML = ((new Date())-fixture.startTime)+"ms"; 207 fn.className = (success) ? "success" : "failure"; 215 if(fn){ 216 fn.getElementsByTagName("td")[2].innerHTML = ((new Date())-fixture.startTime)+"ms"; 217 fn.className = (success) ? "success" : "failure"; 218 } 208 219 this.debug(((success) ? "PASSED" : "FAILED"), "test:", fixture.name); 209 220 } … … 269 280 // would be easier w/ query...sigh 270 281 runAll = (!runAll); 282 if(!dojo.byId("testList")){ return; } 271 283 var tb = byId("testList").tBodies[0]; 272 284 var inputs = tb.getElementsByTagName("input");