function testToolbarManagerResizeDropdown() {
    var mockWindow = new MockWindow(1920, 1080);
    var mockZoomToolbar = {
      clientHeight: 400
    };
    var toolbar = document.getElementById('toolbar');
    var bookmarksDropdown = toolbar.$.bookmarks;

    var toolbarManager =
        new ToolbarManager(mockWindow, toolbar, mockZoomToolbar);

    chrome.test.assertEq(680, bookmarksDropdown.lowerBound);

    mockWindow.setSize(1920, 480);
    chrome.test.assertEq(80, bookmarksDropdown.lowerBound);

    chrome.test.succeed();
  }
/**
   * Test that changes to window height bubble down to dropdowns correctly.
   */
Test that changes to window height bubble down to dropdowns correctly.
Test that changes to window height bubble down to dropdowns correctly .
function testToolbarManagerResizeDropdown() {
    var mockWindow = new MockWindow(1920, 1080);
    var mockZoomToolbar = {
      clientHeight: 400
    };
    var toolbar = document.getElementById('toolbar');
    var bookmarksDropdown = toolbar.$.bookmarks;
    var toolbarManager =
        new ToolbarManager(mockWindow, toolbar, mockZoomToolbar);
    chrome.test.assertEq(680, bookmarksDropdown.lowerBound);
    mockWindow.setSize(1920, 480);
    chrome.test.assertEq(80, bookmarksDropdown.lowerBound);
    chrome.test.succeed();
  }
function testToolbarManagerResizeDropdown ( ) { var mockWindow = new MockWindow ( 1920 , 1080 ) ; var mockZoomToolbar = { clientHeight : 400 } ; var toolbar = document . getElementById ( 'toolbar' ) ; var bookmarksDropdown = toolbar . $ . bookmarks ; var toolbarManager = new ToolbarManager ( mockWindow , toolbar , mockZoomToolbar ) ; chrome . test . assertEq ( 680 , bookmarksDropdown . lowerBound ) ; mockWindow . setSize ( 1920 , 480 ) ; chrome . test . assertEq ( 80 , bookmarksDropdown . lowerBound ) ; chrome . test . succeed ( ) ; }
Test that changes to window height bubble down to dropdowns correctly.
Test that changes to window height bubble down to dropdowns correctly .