langtools/test/com/sun/javadoc/lib/JavadocTester.java
changeset 25004 b33effe4f252
parent 24399 af1a0220d0fa
child 26091 c40ba05822ad
equal deleted inserted replaced
24905:bd3cf6f243be 25004:b33effe4f252
   449         String fileString = readOutputFile(path);
   449         String fileString = readOutputFile(path);
   450         int prevIndex = -1;
   450         int prevIndex = -1;
   451         for (String s : strings) {
   451         for (String s : strings) {
   452             int currentIndex = fileString.indexOf(s);
   452             int currentIndex = fileString.indexOf(s);
   453             checking(s + " at index " + currentIndex);
   453             checking(s + " at index " + currentIndex);
   454             if (currentIndex >= prevIndex) {
   454             if (currentIndex == -1) {
   455                 passed(s + "is in the correct order");
   455                 failed(s + " not found.");
       
   456                 continue;
       
   457             }
       
   458             if (currentIndex > prevIndex) {
       
   459                 passed(s + " is in the correct order");
   456             } else {
   460             } else {
   457                 failed(s + " is in the wrong order.");
   461                 failed(s + " is in the wrong order.");
   458             }
   462             }
   459             prevIndex = currentIndex;
   463             prevIndex = currentIndex;
   460         }
   464         }