public void testWest() { Widget west = root.getWidget(1); assertEquals(com.google.gwt.user.client.ui.DockPanel.WEST, root.getWidgetDirection(west)); assertEquals(HTML.class, west.getClass()); String html = ((HTML) west).getHTML(); assertTrue(html.contains("side bar")); }
private Widget getCenter() { Widget center = root.getWidget(2); return center; }
public void testNorth() { Widget north = root.getWidget(0); assertEquals(com.google.gwt.user.client.ui.DockPanel.NORTH, root.getWidgetDirection(north)); assertEquals(HTML.class, north.getClass()); assertTrue(((HTML) north).getHTML().contains("Title area")); }