From 4b613822ced46710ba10095855f9996c5cd7c354 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 5 Nov 2013 17:10:32 +0400 Subject: [PATCH] added comment to test --- .../com/intellij/openapi/roots/impl/DirectoryIndexTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java b/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java index 3531bdab3231..d86fd6b2f32a 100644 --- a/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java +++ b/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java @@ -508,10 +508,11 @@ public class DirectoryIndexTest extends IdeaTestCase { checkInfo(myModule1Dir, myModule, true, false, "", null, myModule); checkInfo(mySrcDir1, myModule, true, false, "", JavaSourceRootType.SOURCE, myModule); - - //todo this looks strange and inconsistent: the same library classes and sources have different order entries + checkInfo(myLibDir, myModule, true, false, "lib", null, myModule); checkInfo(myLibClsDir, myModule, true, false, "", null, myModule2, myModule3); + + //myModule is included into order entries instead of myModule2 because classes root for libraries dominates on source roots checkInfo(myLibSrcDir, myModule, true, true, "", null, myModule, myModule3); checkInfo(myResDir, myModule, true, false, "", JavaResourceRootType.RESOURCE, myModule);