p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/newsigniter/assets/back/vendors/summernote_v/test/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/newsigniter/assets/back/vendors/summernote_v/test//chaidom.js
import $ from 'jquery';
import env from '../src/js/base/core/env';

export default function(chai) {
  chai.dom = chai.dom || {};

  chai.dom.equalsIgnoreCase = (str1, str2) => {
    str1 = str1.toUpperCase();
    str2 = str2.toUpperCase();

    // [workaround] IE8-10 use   instead of bogus br
    if (env.isMSIE && env.browserVersion < 11) {
      str2 = str2.replace(/<BR\/?>/g, '&NBSP;');
      str1 = str1.replace(/<BR\/?>/g, '&NBSP;');
    }

    // [workaround] IE8 str1 markup has newline between tags
    if (env.isMSIE && env.browserVersion < 9) {
      str1 = str1.replace(/\r\n/g, '');
    }

    return str1 === str2;
  };

  chai.dom.equalsStyle = ($node, expected, style) => {
    const nodeStyle = window.getComputedStyle($node[0]).getPropertyValue(style);
    const testerStyle = $('<div />').css(style, expected).css(style);
    return nodeStyle === testerStyle;
  };

  chai.Assertion.addChainableMethod('await', (done) => {
    try {
      setTimeout(() => { done(); }, 10);
    } catch (e) {
      done(e);
    }
  });

  chai.Assertion.addChainableMethod('equalsIgnoreCase', function(expected) {
    var actual = this._obj;

    return this.assert(
      chai.dom.equalsIgnoreCase(actual, expected),
      'expected ' + this._obj + ' to equal ' + expected + ' ignoring case',
      'expected ' + this._obj + ' not to equal ' + expected + ' ignoring case'
    );
  });

  chai.Assertion.addChainableMethod('equalsStyle', function(expected, style) {
    var $node = this._obj;

    return this.assert(
      chai.dom.equalsStyle($node, expected, style),
      'expected ' + this._obj.css(style) + ' to equal ' + expected + ' style',
      'expected ' + this._obj.css(style) + ' not to equal ' + expected + ' style'
    );
  });

  chai.assert.equalsIgnoreCase = (val, exp, msg) => {
    new chai.Assertion(val, msg).to.be.equalsIgnoreCase(exp);
  };

  chai.assert.notequalsIgnoreCase = (val, exp, msg) => {
    new chai.Assertion(val, msg).to.not.be.equalsIgnoreCase(exp);
  };
}
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 03 2025 03:29:16
0 / 0
0755
base
--
January 03 2025 03:29:16
0 / 0
0755
chaidom.js
1.958 KB
December 31 2020 02:24:50
0 / 0
0644