403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/laragon2/www/ayongundang/assets/admin/vendor/select2/tests/selection/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/laragon2/www/ayongundang/assets/admin/vendor/select2/tests/selection/search-placeholder-tests.js
module('Selection containers - Inline search - Placeholder');

var MultipleSelection = require('select2/selection/multiple');
var InlineSearch = require('select2/selection/search');
var SelectionPlaceholder = require('select2/selection/placeholder');

var $ = require('jquery');
var Options = require('select2/options');
var Utils = require('select2/utils');

var CustomSelection = Utils.Decorate(
  Utils.Decorate(MultipleSelection, SelectionPlaceholder),
  InlineSearch
);

test('width does not extend the search box', function (assert) {
    assert.expect(2);

    var $container = $(
      '<div style="width: 100px; display: table-cell">' +
      '<div style="width: 100%" ' +
      'class="select2-container select2-container--default"></div>' +
      '</div>'
    );
    var container = new MockContainer();

    var $element = $('#qunit-fixture .multiple');
    var selection = new CustomSelection($element, new Options({
      placeholder: 'Test placeholder'
    }));

    var $selection = selection.render();
    selection.bind(container, $container);

    // Make it visible so the browser can place focus on the search
    $container.append($selection);
    $('#qunit-fixture').append($container);

    // Update the selection so the search is rendered
    selection.update([]);

    var $search = $selection.find('input');

    assert.equal(
      $search.outerWidth(),
      60,
      'The search should not be the entire width of the container'
    );

    assert.equal(
      $container.children().outerWidth(),
      100,
      'The container should be the width assigned to the parent in CSS'
    );
  });

Youez - 2016 - github.com/yon3zu
LinuXploit