title: Simulate mouseover in jasmine unit test?
body: <p>Apologies if this is covered elsewhere, struggled to find comprehensive result on search.</p>
  
  <p>I've got a Javascript app that has audio descriptions on mouseover for certain elements. These are implemented using mouseover listeners like so (pseudo-code!)</p>
  
  <pre><code>  menuOption.addEventListener("mouseover", function(){
      audio.play("menuoption"); 
    });
  </code></pre>
  
  <p>In my test I've got something like:</p>
  
  <pre><code>  spyOn(audio, "play")
  
    menuOption.mouseover()
  
    expect(audio.play.calls.count()).toBe(1);
  </code></pre>
  
  <p>This mouseover doesn't seem to fire. I'm using jasmine and phantomjs. When I change mouseover to click it works ok so I'm inclined to think my tests are fine and its mouseover thats a problem?</p>