Fix legend display on Firefox+Windows, close #2287
Upgrade Mockito 1.10.5