*** lib/Test/Builder.js.orig Thu Mar 23 15:52:46 2006 --- lib/Test/Builder.js Thu Mar 23 15:27:32 2006 *************** *** 9,14 **** --- 9,18 ---- //Director if (typeof _global.Test == "undefined") _global.Test = {PLATFORM: 'director'}; else _global.Test.PLATFORM = 'director'; + } else if (typeof WScript != 'undefined') { + // WSH + if (typeof Test == 'undefined') Test = {PLATFORM: 'wsh'}; + else Test.PLATFORM = 'wsh'; } else { throw new Error("Test.More does not support your platform"); } *************** *** 613,619 **** this.failureOutput(trace); this.todoOutput(trace); this.warnOutput(trace); ! } return this; }; --- 617,633 ---- this.failureOutput(trace); this.todoOutput(trace); this.warnOutput(trace); ! ! } else if (Test.PLATFORM == 'wsh') { ! // Windows Scripting Host Support ! var writer = function (msg) { ! WScript.StdOut.writeline(msg); ! } ! this.output(writer); ! this.failureOutput(writer); ! this.todoOutput(writer); ! this.warnOutput(writer); ! } return this; };