mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-12 04:31:04 +00:00
Update app.js
This commit is contained in:
parent
85be8e2f90
commit
daa47a8fc5
6
app.js
6
app.js
|
@ -56,12 +56,18 @@ var console = {
|
|||
}
|
||||
return res;
|
||||
},
|
||||
_echoCallback: null,
|
||||
_echo: function(args, type) {
|
||||
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
|
||||
if (typeof(WScript) !== "undefined") {
|
||||
WScript.echo(" * " + msg);
|
||||
}
|
||||
this._messages.push(msg);
|
||||
|
||||
// after calling echo
|
||||
if (typeof this._echoCallback === "function") {
|
||||
_echoCallback(this);
|
||||
}
|
||||
},
|
||||
assert: function(assertion) {
|
||||
if (arguments.length > 1 && assertion === arguments[0]) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user