Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
Layer layer = (Layout.Layer) widget.getLayoutData();
LayerFriend helper = new LayerFriend(layer);
assertEquals("Top", expectedLayerProperties.getTop(), helper.getTop());
assertEquals("Right", expectedLayerProperties.getRight(),
helper.getRight());
assertEquals("Bottom", expectedLayerProperties.getBottom(),
helper.getBottom());
assertEquals("Left", expectedLayerProperties.getLeft(),
helper.getLeft());
assertEquals("Height", expectedLayerProperties.getHeight(),
helper.getHeight());
assertEquals("Width", expectedLayerProperties.getWidth(),
helper.getWidth());
assertEquals("Top Units", expectedLayerProperties.getTopUnit(),
helper.getTopUnit());
assertEquals("Right Units", expectedLayerProperties.getRightUnit(),
helper.getRightUnit());
assertEquals("Bottom Units", expectedLayerProperties.getBottomUnit(),
helper.getBottomUnit());
assertEquals("Left Units", expectedLayerProperties.getLeftUnit(),
helper.getLeftUnit());
assertEquals("Height Units", expectedLayerProperties.getHeightUnit(),
helper.getHeightUnit());
assertEquals("Width Units", expectedLayerProperties.getWidthUnit(),
helper.getWidthUnit());
finishTest();
}
});
}