Opened 10 years ago

Last modified 10 years ago

#13037 closed enhancement

[Patch] Small fixes for unit tests — at Version 1

Reported by: michael2402 Owned by: team
Priority: normal Milestone: 16.06
Component: Unit tests Version:
Keywords: gsoc-core Cc: Don-vip, bastiK, stoecker

Description (last modified by michael2402)

This is a collection of small fixes to make (more) unit tests pass. Most notably the following bugs are fixed:

  • Unit tests assume Europe/Berlin timezone
  • PreferencesTest assumed you use josm_test as user.
  • Remove Main.map.[mapView.]repaint() calls after command execution or when that layer can be invalidated.
  • Fix GpxTrack returning the wrong max time if the latest node is not the last one.
  • Set logLevel to default for all tests
  • AutosaveTaskTest does not create an endless list of warnings any more - 5 are enough to test that.
  • Fix Commmand triggering the selection change in the active data set. It triggers in the edited data set now.

A more detailed version of the changes can be seen here:
https://github.com/michaelzangl/josm/commits/test-do-not-call-map-repaint

If you want to preserve the commit messages, I can pack you the output of git --format-patch ;-).

Change History (2)

comment:1 by michael2402, 10 years ago

Description: modified (diff)

by michael2402, 10 years ago

Note: See TracTickets for help on using tickets.