function testPageDownInFitPage() {
    window.viewer.viewport.fitToPage();

    // Page down -> Go to page 2.
    MockInteractions.pressAndReleaseKeyOn(document, 34);
    chrome.test.assertEq(1, getCurrentPage());

    // Page up -> Back to page 1.
    MockInteractions.pressAndReleaseKeyOn(document, 33);
    chrome.test.assertEq(0, getCurrentPage());

    resetDocument();
    chrome.test.succeed();
  }
/**
   * Test that when the document is in fit to page, pressing page up/page down
   * changes page back/forth.
   */
Test that when the document is in fit to page, pressing page up/page down
changes page back/forth.
Test that when the document is in fit to page pressing page up / page down changes page back / forth .
function testPageDownInFitPage() {
    window.viewer.viewport.fitToPage();
    MockInteractions.pressAndReleaseKeyOn(document, 34);
    chrome.test.assertEq(1, getCurrentPage());
    MockInteractions.pressAndReleaseKeyOn(document, 33);
    chrome.test.assertEq(0, getCurrentPage());
    resetDocument();
    chrome.test.succeed();
  }
function testPageDownInFitPage ( ) { window . viewer . viewport . fitToPage ( ) ; MockInteractions . pressAndReleaseKeyOn ( document , 34 ) ; chrome . test . assertEq ( 1 , getCurrentPage ( ) ) ; MockInteractions . pressAndReleaseKeyOn ( document , 33 ) ; chrome . test . assertEq ( 0 , getCurrentPage ( ) ) ; resetDocument ( ) ; chrome . test . succeed ( ) ; }
Test that when the document is in fit to page, pressing page up/page down
 changes page back/forth.
Test that when the document is in fit to page pressing page up / page down changes page back / forth .
// Page down -> Go to page 2. // Page up -> Back to page 1.