title: Error accessing jQuery(window).height() in jasmine while running tests in maven
body: <p>In order to increase test coverage of my project, I'm starting to build tests for existing JS code.</p>
  
  <p>One of the existing modules puts the window height in a variable with jQuery:
      var window_height = jQuery(window).height();
  Internally jQuery uses the clientHeight property.</p>
  
  <p>Now with either <strong>mvn clean install</strong> or <strong>mvn -o test</strong> I'm getting the error:
  <em>Cannot read property "clientHeight" from null</em></p>
  
  <p>I assume this is because the "virtual browser" that Jasmine creates doesn't have the window property. Is there any way to make this work?</p>