function testPageSize() {
    // Verify that the initial zoom is less than or equal to 100%.
    chrome.test.assertTrue(viewer.viewport.zoom <= 1);

    viewer.viewport.setZoom(1);
    var sizer = document.getElementById('sizer');
    chrome.test.assertEq(826, sizer.offsetWidth);
    chrome.test.assertEq(1066 + viewer.viewport.topToolbarHeight_,
                         sizer.offsetHeight);
    chrome.test.succeed();
  }
/**
   * Test that the page is sized to the size of the document.
   */
Test that the page is sized to the size of the document.
Test that the page is sized to the size of the document .
function testPageSize() {
    chrome.test.assertTrue(viewer.viewport.zoom <= 1);
    viewer.viewport.setZoom(1);
    var sizer = document.getElementById('sizer');
    chrome.test.assertEq(826, sizer.offsetWidth);
    chrome.test.assertEq(1066 + viewer.viewport.topToolbarHeight_,
                         sizer.offsetHeight);
    chrome.test.succeed();
  }
function testPageSize ( ) { chrome . test . assertTrue ( viewer . viewport . zoom <= 1 ) ; viewer . viewport . setZoom ( 1 ) ; var sizer = document . getElementById ( 'sizer' ) ; chrome . test . assertEq ( 826 , sizer . offsetWidth ) ; chrome . test . assertEq ( 1066 + viewer . viewport . topToolbarHeight_ , sizer . offsetHeight ) ; chrome . test . succeed ( ) ; }
Test that the page is sized to the size of the document.
Test that the page is sized to the size of the document .
// Verify that the initial zoom is less than or equal to 100%.