public void testMapAddMapTypeTrigger() {
loadApi(new Runnable() {
public void run() {
final MapWidget m = new MapWidget();
m.addMapAddMapTypeHandler(new MapAddMapTypeHandler() {
public void onAddMapType(MapAddMapTypeEvent event) {
MapWidget sender = event.getSender();
assertEquals(sender, m);
assertTrue("maptype doesn't match", event.getType().equals(
MapType.getMarsElevationMap()));