Bug 746215 - Report total checkerboarding instead of average checkerboarding for tcheckerboard tests. r=jmaher

This commit is contained in:
Kartikaya Gupta 2012-04-26 14:24:10 -04:00
Родитель 29bad22fcf
Коммит 359a236887
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -265,11 +265,11 @@ public class FennecNativeDriver implements Driver {
try { try {
Object [] params = null; Object [] params = null;
List<Float> checkerboard = (List<Float>)_stopCheckerboardRecording.invoke(null, params); List<Float> checkerboard = (List<Float>)_stopCheckerboardRecording.invoke(null, params);
float completeness = 0; float total = 0;
for (float val : checkerboard) { for (float val : checkerboard) {
completeness += (1.0f - val); total += val;
} }
return completeness / (float)checkerboard.size(); return total * 100.0f;
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
log(LogLevel.ERROR, e); log(LogLevel.ERROR, e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {