!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/classlist-polyfill/tests/   drwxrwxr-x
Free 13.2 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     tests.js (1.73 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
QUnit.module("classList.toggle");

QUnit.test("Adds a class", function(assert) {
	var cList = document.createElement("p").classList;

	cList.toggle("c1");
	assert.ok(cList.contains("c1"), "Adds a class that is not present");

	assert.strictEqual(
		cList.toggle("c2"),
		true,
		"Returns true when class is added"
	);
});

QUnit.test("Removes a class", function(assert) {
	var cList = document.createElement("p").classList;

	cList.add("c1");
	cList.toggle("c1");
	assert.ok(!cList.contains("c1"), "Removes a class that is present");

	cList.add("c2");
	assert.strictEqual(
		cList.toggle("c2"),
		false,
		"Return false when class is removed"
	);
});

QUnit.test("Adds class with second argument", function(assert) {
	var cList = document.createElement("p").classList;

	cList.toggle("c1", true);
	assert.ok(cList.contains("c1"), "Adds a class");

	assert.strictEqual(
		cList.toggle("c2", true),
		true,
		"Returns true when class is added"
	);

	cList.add("c3");
	cList.toggle("c3", true);
	assert.ok(
		cList.contains("c3"),
		"Does not remove a class that is already present"
	);

	cList.add("c4");
	assert.strictEqual(
		cList.toggle("c4", true),
		true,
		"Returns true when class is already present"
	);
});

QUnit.test("Removes class with second argument", function(assert) {
	var cList = document.createElement("p").classList;

	cList.add("c1");
	cList.toggle("c1", false);
	assert.ok(!cList.contains("c1"), "Removes a class");

	assert.strictEqual(
		cList.toggle("c2", false),
		false,
		"Returns false when class is removed"
	);

	cList.toggle("c3", false);
	assert.ok(
		!cList.contains("c3"),
		"Does not add a class that is not present"
	);

	assert.strictEqual(
		cList.toggle("c4", false),
		false,
		"Returns false when class was not present"
	);
});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0288 ]--