public void testScaleType() {
loadApi(new Runnable() {
public void run() {
Widget widget;
Options options;
options = Options.create();
options.setScaleType(ScaleType.ALLFIXED);
widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
"400px", "400px");
RootPanel.get().add(widget);
System.out.println(widget.getElement().getString());
options = Options.create();
options.setScaleType(ScaleType.ALLMAXIMIZE);
widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
"400px", "400px");
RootPanel.get().add(widget);
System.out.println(widget.getElement().getString());
options = Options.create();
options.setScaleType(ScaleType.FIXED);
widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
"400px", "400px");
RootPanel.get().add(widget);
System.out.println(widget.getElement().getString());
options = Options.create();
options.setScaleType(ScaleType.MAXIMIZE);
widget = new AnnotatedTimeLine(createAnnotatedDataTable(), options,
"400px", "400px");
RootPanel.get().add(widget);
System.out.println(widget.getElement().getString());