function testPageChangesWithArrows() {
    // Right arrow -> Go to page 2.
    MockInteractions.pressAndReleaseKeyOn(document, 39);
    chrome.test.assertEq(1, getCurrentPage());

    // Left arrow -> Back to page 1.
    MockInteractions.pressAndReleaseKeyOn(document, 37);
    chrome.test.assertEq(0, getCurrentPage());

    resetDocument();
    chrome.test.succeed();
  }
/**
   * Test that the left/right arrows change page back and forth.
   */
Test that the left/right arrows change page back and forth.
Test that the left / right arrows change page back and forth .
function testPageChangesWithArrows() {
    MockInteractions.pressAndReleaseKeyOn(document, 39);
    chrome.test.assertEq(1, getCurrentPage());
    MockInteractions.pressAndReleaseKeyOn(document, 37);
    chrome.test.assertEq(0, getCurrentPage());
    resetDocument();
    chrome.test.succeed();
  }
function testPageChangesWithArrows ( ) { MockInteractions . pressAndReleaseKeyOn ( document , 39 ) ; chrome . test . assertEq ( 1 , getCurrentPage ( ) ) ; MockInteractions . pressAndReleaseKeyOn ( document , 37 ) ; chrome . test . assertEq ( 0 , getCurrentPage ( ) ) ; resetDocument ( ) ; chrome . test . succeed ( ) ; }
Test that the left/right arrows change page back and forth.
Test that the left / right arrows change page back and forth .
// Right arrow -> Go to page 2. // Left arrow -> Back to page 1.