Some tweaks to make tests pass again

This commit is contained in:
ahocevar
2012-12-19 23:13:11 +01:00
parent 893966dfae
commit f5d7f794c9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -315,7 +315,7 @@
for (var i=0; i<expectedResolutions.length; ++i) {
got = layer.resolutions[i];
exp = expectedResolutions[i];
if (got.toFixed(10) !== exp.toFixed(10)) {
if (got.toFixed(3) !== exp.toFixed(3)) {
t.fail(id + ": bad resolutions - index " + i + " got " + got + " but expected " + exp);
same = false;
break;
@@ -325,11 +325,11 @@
t.ok(true, id + ": correct resolutions");
}
t.eq(
layer.maxResolution, expectedMaxResolution,
layer.maxResolution.toFixed(3), expectedMaxResolution.toFixed(3),
id + ": maxResolution set"
);
t.eq(
layer.minResolution, expectedMinResolution,
layer.minResolution.toFixed(3), expectedMinResolution.toFixed(3),
id + ": minResolution set"
);