function testEscKeyPropogationInPrintPreview() {
    viewer.isPrintPreview_ = true;
    scriptingAPI.setKeyEventCallback(chrome.test.callbackPass(function(e) {
      chrome.test.assertEq(27, e.keyCode);
    }));
    var e = document.createEvent('Event');
    e.initEvent('keydown');
    e.keyCode = 27;
    document.dispatchEvent(e);
  }
/**
   * Test that the escape key gets propogated to the outer frame (via the
   * PDFScriptingAPI) in print preview.
   */
Test that the escape key gets propogated to the outer frame (via the
PDFScriptingAPI) in print preview.
Test that the escape key gets propogated to the outer frame ( via the PDFScriptingAPI ) in print preview .
function testEscKeyPropogationInPrintPreview() {
    viewer.isPrintPreview_ = true;
    scriptingAPI.setKeyEventCallback(chrome.test.callbackPass(function(e) {
      chrome.test.assertEq(27, e.keyCode);
    }));
    var e = document.createEvent('Event');
    e.initEvent('keydown');
    e.keyCode = 27;
    document.dispatchEvent(e);
  }
function testEscKeyPropogationInPrintPreview ( ) { viewer . isPrintPreview_ = true ; scriptingAPI . setKeyEventCallback ( chrome . test . callbackPass ( function ( e ) { chrome . test . assertEq ( 27 , e . keyCode ) ; } ) ) ; var e = document . createEvent ( 'Event' ) ; e . initEvent ( 'keydown' ) ; e . keyCode = 27 ; document . dispatchEvent ( e ) ; }
Test that the escape key gets propogated to the outer frame (via the
 PDFScriptingAPI) in print preview.
Test that the escape key gets propogated to the outer frame ( via the PDFScriptingAPI ) in print preview .