function testPageDoesntChangeWhenFormFocused() {
    // This should be set by a message from plugin -> page when a field is
    // focused.
    window.viewer.isFormFieldFocused_ = true;

    // Page should not change when left/right are pressed.
    MockInteractions.pressAndReleaseKeyOn(document, 39);
    chrome.test.assertEq(0, getCurrentPage());

    MockInteractions.pressAndReleaseKeyOn(document, 37);
    chrome.test.assertEq(0, getCurrentPage());

    resetDocument();
    chrome.test.succeed();
  }
/**
   * Test that when a PDF form field is focused, the left/right shortcuts are
   * disabled. This doesn't test the plugin side of this feature.
   */
Test that when a PDF form field is focused, the left/right shortcuts are
disabled. This doesn't test the plugin side of this feature.
Test that when a PDF form field is focused the left / right shortcuts are disabled . This doesn ' t test the plugin side of this feature .
function testPageDoesntChangeWhenFormFocused() {
    window.viewer.isFormFieldFocused_ = true;
    MockInteractions.pressAndReleaseKeyOn(document, 39);
    chrome.test.assertEq(0, getCurrentPage());
    MockInteractions.pressAndReleaseKeyOn(document, 37);
    chrome.test.assertEq(0, getCurrentPage());
    resetDocument();
    chrome.test.succeed();
  }
function testPageDoesntChangeWhenFormFocused ( ) { window . viewer . isFormFieldFocused_ = true ; MockInteractions . pressAndReleaseKeyOn ( document , 39 ) ; chrome . test . assertEq ( 0 , getCurrentPage ( ) ) ; MockInteractions . pressAndReleaseKeyOn ( document , 37 ) ; chrome . test . assertEq ( 0 , getCurrentPage ( ) ) ; resetDocument ( ) ; chrome . test . succeed ( ) ; }
Test that when a PDF form field is focused, the left/right shortcuts are
 disabled.
Test that when a PDF form field is focused the left / right shortcuts are disabled .
// This should be set by a message from plugin -> page when a field is // focused. // Page should not change when left/right are pressed.