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
.createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		window.setToBeRendered(false);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(application);
		assertNull("No widget for an unrendered window", window.getWidget());
		assertNull("No context for an unrendered window", window.getContext());
		window.setToBeRendered(true);
		assertNotNull("Rendered window should have a widget",
				window.getWidget());
		assertNotNull("Rendered window should have a context",
				window.getContext());
	}
	public void testBug334644_02() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		window.setToBeRendered(true);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
		assertNotNull("Rendered window should have a widget",
				window.getWidget());