Bug 299340 [CommonNavigator] Enable new CNF tests
Enable the contributed CNF tests, make minor test improvements.
tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/ProgrammaticOpenTest.java
assertTrue(_expectedChildren.contains(children[i].getData()));
		}
	}
	public void testNavigatorExtensionEnablement() throws Exception {
		assertEquals("There should be no visible extensions for the programmatic viewer.", 0, _contentService.getVisibleExtensionIds().length);
		_contentService.bindExtensions(new String[] { COMMON_NAVIGATOR_RESOURCE_EXT }, false);
		assertEquals("There should be one visible extension for the programmatic viewer.", 1, _contentService.getVisibleExtensionIds().length);
		_contentService.getActivationService().activateExtensions(new String[] { COMMON_NAVIGATOR_RESOURCE_EXT }, true);
		_contentService.getActivationService().activateExtensions(new String[] {}, true);
		refreshViewer();
		_viewer.expandAll();
		TreeItem[] items = _viewer.getTree().getItems();
		assertTrue("There should be NO items.", items.length == 0); 
		_contentService.getActivationService().deactivateExtensions(new String[] {}, true);
		_viewer.expandToLevel(2);
		items = _viewer.getTree().getItems();
		assertTrue("There should be some items.", items.length > 0); 
	}
	public void testNavigatorSorterAccess() throws Exception {
		INavigatorSorterService sorterService = _contentService.getSorterService();
		INavigatorContentDescriptor testDescriptor = _contentService.getContentDescriptorById(TEST_CONTENT);
		Map sorters = sorterService.findAvailableSorters(testDescriptor);
		assertEquals(1, sorters.size());
		for (Iterator iter = sorters.entrySet().iterator(); iter.hasNext();) {
			Map.Entry entry = (Map.Entry) iter.next();
			assertTrue(entry.getValue() instanceof TestSorterData);
		}
	}
}