Bug 194843 Cross tab Cube - Cannot delete a dimension using the cube builder
- Open the attached report design - Delete the "Region" group. Current behavior - Does now allow me to delete the group.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/command/ContentCommandTest.java
/**
	 * Test after delete a style, whether references on the deleted contented
	 * were adjusted correctly.
	 * 
	 * Test case:
	 * 
	 * <ul>
	 * <li>Drop and unresolve one style
	 * <li>Drop one style
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testStyleReferenceAfterDeletionAndDetachment( )
			throws Exception
	{
		
		createStyleAndLabel( );
		StyleHandle styleHandle = designHandle.findStyle( "style" );
		LabelHandle labelHandle = (LabelHandle) designHandle
				.findElement( "label" );
		styleHandle.dropAndClear( );
		assertEquals( null, labelHandle.getStyle( ) );
		assertEquals( null, labelHandle
				.getStringProperty( LabelHandle.STYLE_PROP ) );
		Iterator iter = styleHandle.clientsIterator( );
		assertEquals( false, iter.hasNext( ) );
		designHandle.getCommandStack( ).undo( );
		assertEquals( styleHandle.getName( ), labelHandle
				.getStringProperty( LabelHandle.STYLE_PROP ) );