View | Details | Raw Unified | Return to bug 293697 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (-2 / +8 lines)
Lines 10991-10996 Link Here
10991
		// Wait to be sure that indexes are ready after the new resource was added
10991
		// Wait to be sure that indexes are ready after the new resource was added
10992
		waitUntilIndexesReady();
10992
		waitUntilIndexesReady();
10993
10993
10994
		// Restart to let the indexes to be refreshed
10995
		simulateExit();
10996
		simulateRestart();		
10997
		waitUntilIndexesReady();
10998
10994
		// Search for the new type with new extension
10999
		// Search for the new type with new extension
10995
		TypeNameMatchCollector collector = new TypeNameMatchCollector();
11000
		TypeNameMatchCollector collector = new TypeNameMatchCollector();
10996
		new SearchEngine().searchAllTypeNames(
11001
		new SearchEngine().searchAllTypeNames(
Lines 11001-11008 Link Here
11001
				IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
11006
				IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
11002
				null);
11007
				null);
11003
		assertSearchResults("Unexpected search results!",
11008
		assertSearchResults("Unexpected search results!",
11004
			"Xtorem (not open) [in Xtorem.torem [in p [in <project root> [in P]]]]",
11009
				"Xtorem (not open) [in Xtorem.torem [in p [in <project root> [in P]]]]",
11005
			collector);
11010
				collector,
11011
				false /*only assume*/);
11006
		
11012
		
11007
		// Delete the file specification
11013
		// Delete the file specification
11008
		javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);
11014
		javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);

Return to bug 293697