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
assertNull(detachedWindow.getWidget());
	}
	public void testRemoveGui_Bug334577_02() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		MWindow detachedWindow = BasicFactoryImpl.eINSTANCE.createWindow();
		window.getWindows().add(detachedWindow);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
		assertNotNull(detachedWindow.getContext());
		assertNotNull(detachedWindow.getWidget());
		window.setToBeRendered(false);
		assertNull(detachedWindow.getContext());
		assertNull(detachedWindow.getWidget());
	}
	/**
	 * Test to ensure that we don't get an exception while rendering a child of
	 * an MTrimBar that doesn't have its element id set.
	 */
	public void testBug336139() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MTrimmedWindow window = BasicFactoryImpl.eINSTANCE
				.createTrimmedWindow();
		application.getChildren().add(window);