Bug 336225 Trim bars do not get unrendered by the rendering engine when trimmed window is unrendered
The trim bars are "ignored" by the rendering engine as it does not perform an unrendering pass on them when the parent trimmed window is being unrendered.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/PartRenderingEngineTests.java
application.setSelectedElement(window);
		MTrimBar trimBar = BasicFactoryImpl.eINSTANCE.createTrimBar();
		window.getTrimBars().add(trimBar);
		MToolControl toolControl = MenuFactoryImpl.eINSTANCE
				.createToolControl();
		trimBar.getChildren().add(toolControl);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
	}
	private MWindow createWindowWithOneView(String partName) {
		final MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		window.setHeight(300);
		window.setWidth(400);
		window.setLabel("MyWindow");
		MPartSashContainer sash = BasicFactoryImpl.eINSTANCE
				.createPartSashContainer();
		window.getChildren().add(sash);
		MPartStack stack = BasicFactoryImpl.eINSTANCE.createPartStack();
		sash.getChildren().add(stack);
		MPart contributedPart = BasicFactoryImpl.eINSTANCE.createPart();
		stack.getChildren().add(contributedPart);
		contributedPart.setLabel(partName);
		contributedPart
				.setContributionURI("platform:/plugin/org.eclipse.e4.ui.tests/org.eclipse.e4.ui.tests.workbench.SampleView");
		return window;
	}
}