assertEquals(expectedCss, widgetUsingGss.style.getText());
}
public void testCssConversion() {
WidgetUsingCss widgetUsingCss = new WidgetUsingCss();
CssStyle style = widgetUsingCss.style;
RootPanel.get().add(widgetUsingCss);
assertEquals(style.main(), widgetUsingCss.getStyleName());
String expectedCss = "." + style.main() + "{background-color:black;color:white}";
assertEquals(expectedCss, widgetUsingCss.style.getText());
}