}
public void testSimple() {
loadApi(new Runnable() {
public void run() {
final MapWidget map = new MapWidget();
map.setSize("300px", "300px");
RootPanel.get().add(map);
GeoXmlOverlay.load(KML_DEMO_URI, new GeoXmlLoadCallback() {
@Override
public void onFailure(String url, Throwable e) {
assertTrue("testSimple: Expected success", false);
}
@Override
public void onSuccess(String url, GeoXmlOverlay overlay) {
assertNotNull("url", url);
assertNotNull("overlay", overlay);
map.addOverlay(overlay);
assertNotNull("getDefaultBounds()", overlay.getDefaultBounds());
assertNotNull("getDefaultCenter()", overlay.getDefaultCenter());
assertNotNull("getDefaultSpan()", overlay.getDefaultSpan());
overlay.gotoDefaultViewport(map);
finishTest();