mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 746215 - Report total checkerboarding instead of average checkerboarding for tcheckerboard tests. r=jmaher
This commit is contained in:
parent
97492a9c94
commit
07c871e685
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user