Bug 291934 Sash tests failing over part renderer call
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/MSashTest.java
.intValue());
		MContributedPart v1 = (MContributedPart) sf.getChildren().get(0);
		Composite c1 = (Composite) v1.getWidget();
		Rectangle r1 = c1.getBounds();
		MContributedPart v2 = (MContributedPart) sf.getChildren().get(1);
		Composite c2 = (Composite) v2.getWidget();
		Rectangle r2 = c2.getBounds();
		assertTrue("SWT controls should be equal:", r1.width == r2.width);
		SashForm sfw = (SashForm) sf.getWidget();
		int[] w = { 75, 25 };
		sfw.setWeights(w);
		sfw.layout(true);
		testWeights(sf, 75, 25);
		sf.getWeights().clear();
		sf.getWeights().add(new Integer(40));
		sf.getWeights().add(new Integer(60));
		testWeights(sf, 40, 60);
	}
	private void testWeights(MSashForm sf, double w1, double w2) {
		double baseRatio = w1 / w2;
		
		Integer sf1 = (Integer) sf.getWeights().get(0);
		Integer sf2 = (Integer) sf.getWeights().get(1);
		checkRatio("MSashForm", sf1, sf2, baseRatio);
		
		SashForm sfw = (SashForm) sf.getWidget();
		int[] sfwWghts = sfw.getWeights();
		checkRatio("SWT SashForm", sfwWghts[0], sfwWghts[1], baseRatio);
		
		Composite c1 = (Composite) sfw.getChildren()[0];