* these properties correctly register updates for the
* <strong>parent</strong> <code>Component</code>.
*/
public void testLayoutDataUpdate() {
ServerComponentUpdate[] componentUpdates;
ColumnLayoutData columnLayoutData;
manager.purge();
// Setup.
Column column = new Column();
columnApp.getColumn().add(column);
Label label1 = new Label("Label1");
column.add(label1);
Label label2 = new Label("Label2");
column.add(label2);
label2.setLayoutData(new ColumnLayoutData());
componentUpdates = manager.getServerUpdateManager().getComponentUpdates();
assertEquals(1, componentUpdates.length);
assertEquals(false, componentUpdates[0].hasUpdatedLayoutDataChildren());
manager.purge();
columnLayoutData = new ColumnLayoutData();
columnLayoutData.setAlignment(new Alignment(Alignment.CENTER, Alignment.DEFAULT));
label1.setLayoutData(columnLayoutData);
componentUpdates = manager.getServerUpdateManager().getComponentUpdates();
assertEquals(1, componentUpdates.length);
assertEquals(column, componentUpdates[0].getParent());
assertFalse(componentUpdates[0].hasAddedChildren());