Bug 300012 [CommonNavigator] CNF test improvements
Various improvements and corrections.
tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/NavigatorTestBase.java
assertEquals(tlp.font, rootItems[i].getFont(0));
			assertEquals(tlp.image, rootItems[i].getImage(0));
			if (all)
				checkItems(rootItems[i].getItems(), tlp, all, text);
		}
	}
	/**
	 * Returns the TreeItem whose data is a ResourceWrapper with the specified
	 * name.
	 */
	protected TreeItem _findChild(String name, TreeItem[] items) {
		for (int i = 0; i < items.length; i++) {
			assertTrue("Child " + items[i] + " should be an M1 or M2 resource",
					items[i].getData() instanceof ResourceWrapper);
			ResourceWrapper rw = (ResourceWrapper) items[i].getData();
			if (name.equals(rw.getResource().getName())) {
				return items[i];
			}
		}
		return null;
	}
	protected void _expand(TreeItem[] items) {
		for (int i = 0; i < items.length; i++) {
			_viewer.setExpandedState(items[i].getData(), true);
		}
	}
	
	
}