Backed out changeset f3aa442c84e4 (bug 976418) for frequent test failures on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-02-25 13:35:18 +01:00
Родитель 748d43a0dd
Коммит 14829c87bb
1 изменённых файлов: 3 добавлений и 22 удалений

Просмотреть файл

@ -1899,29 +1899,8 @@ public class testBrowserProvider extends ContentProviderTest {
dumpCursor(cursor, 18, "records");
}
private static void dumpColumn(Cursor cursor, int column, int columnWidth) {
switch (cursor.getType(column)) {
case Cursor.FIELD_TYPE_BLOB:
System.out.print(fixedWidth(columnWidth, "<blob>"));
break;
case Cursor.FIELD_TYPE_INTEGER:
System.out.print(fixedWidth(columnWidth, Integer.toString(cursor.getInt(column), 10)));
break;
case Cursor.FIELD_TYPE_NULL:
System.out.print(fixedWidth(columnWidth, "<null>"));
break;
default:
// These don't apply to us.
System.out.print(fixedWidth(columnWidth, "<other>"));
break;
}
System.out.print(" | ");
}
protected static void dumpCursor(Cursor cursor, int columnWidth,
String tags) {
System.out.println("Dumped cursor:");
int originalPosition = cursor.getPosition();
try {
String[] columnNames = cursor.getColumnNames();
@ -1944,7 +1923,9 @@ public class testBrowserProvider extends ContentProviderTest {
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
for (int i = 0; i < columnCount; ++i) {
dumpColumn(cursor, i, columnWidth);
System.out.print(fixedWidth(columnWidth,
cursor.getString(i)) +
" | ");
}
System.out.println("");
cursor.moveToNext();