Better naming for imageBuffersAreSimilar

This commit is contained in:
Raul Ochoa 2016-02-22 16:02:15 +01:00
parent 5301e748de
commit ae9daed43f
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ describe('server_png8_format', function() {
assert.equal(responsePng8.headers['content-type'], "image/png");
bufferPng8 = responsePng8.body;
assert.ok(bufferPng8.length < bufferPng32.length);
assert.imageBuffersAreEqual(bufferPng32, bufferPng8, IMAGE_EQUALS_TOLERANCE_PER_MIL,
assert.imageBuffersAreSimilar(bufferPng32, bufferPng8, IMAGE_EQUALS_TOLERANCE_PER_MIL,
function(err, imagePaths, similarity) {
keysToDelete['map_cfg|' + LayergroupToken.parse(layergroupId).token] = 0;

View File

@ -32,7 +32,7 @@ assert.imageEqualsFile = function(buffer, referenceImageRelativeFilePath, tolera
assert.imagesAreSimilar(testImage, referenceImage, tolerance, callback);
};
assert.imageBuffersAreEqual = function(bufferA, bufferB, tolerance, callback) {
assert.imageBuffersAreSimilar = function(bufferA, bufferB, tolerance, callback) {
var testImage = mapnik.Image.fromBytes(Buffer.isBuffer(bufferA) ? bufferA : new Buffer(bufferA, 'binary'));
var referenceImage = mapnik.Image.fromBytes(Buffer.isBuffer(bufferB) ? bufferB : new Buffer(bufferB, 'binary'));