Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 uid=1(daemon) gid=1(daemon) grupos=1(daemon) Safe-mode: OFF (not secure) /opt/apex_led/www/js/jsunit/app/ drwxrwxr-x | |
| Viewing file: Select action/file-type: /* @author Edward Hieatt, edward@jsunit.net */
function jsUnitTracer() {
this._traceWindow = null;
this.TRACE_LEVEL_WARNING = 1;
this.TRACE_LEVEL_INFO = 2;
this.TRACE_LEVEL_DEBUG = 3;
this.popupWindowsBlocked = false;
}
jsUnitTracer.prototype.initialize = function ()
{
if (this._traceWindow != null && top.testManager.closeTraceWindowOnNewRun.checked)
this._traceWindow.close();
this._traceWindow = null;
}
jsUnitTracer.prototype.finalize = function ()
{
if (this._traceWindow!=null) {
this._traceWindow.document.write('<\/body>\n<\/html>');
this._traceWindow.document.close();
}
}
jsUnitTracer.prototype.warn = function ()
{
this._trace(arguments[0], arguments[1], this.TRACE_LEVEL_WARNING);
}
jsUnitTracer.prototype.inform = function ()
{
this._trace(arguments[0], arguments[1], this.TRACE_LEVEL_INFO);
}
jsUnitTracer.prototype.debug = function ()
{
this._trace(arguments[0], arguments[1], this.TRACE_LEVEL_DEBUG);
}
jsUnitTracer.prototype._trace = function (message, value, traceLevel)
{
if (this._getChosenTraceLevel() >= traceLevel) {
var traceString = message;
if (value)
traceString += ': ' + value;
this._writeToTraceWindow(traceString, traceLevel);
}
}
jsUnitTracer.prototype._getChosenTraceLevel = function ()
{
return eval(top.testManager.traceLevel.value);
}
jsUnitTracer.prototype._writeToTraceWindow = function (traceString, traceLevel)
{
var htmlToAppend = '<p class="jsUnitDefault">' + traceString + '<\/p>\n';
this._getTraceWindow().document.write(htmlToAppend);
}
jsUnitTracer.prototype._getTraceWindow = function ()
{
if (this._traceWindow == null && !this.popupWindowsBlocked) {
this._traceWindow = window.open('','','width=600, height=350,status=no,resizable=yes,scrollbars=yes');
if (!this._traceWindow) {
this.popupWindowsBlocked = true;
}
else {
var resDoc = this._traceWindow.document;
resDoc.write('<html>\n<head>\n<link rel="stylesheet" href="css/jsUnitStyle.css">\n<title>Tracing - JsUnit<\/title>\n<head>\n<body>');
resDoc.write('<h2>Tracing - JsUnit<\/h2>\n');
}
}
return this._traceWindow;
}
if (xbDEBUG.on)
{
xbDebugTraceObject('window', 'jsUnitTracer');
}
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9653 ]-- |