From a3cb9862a371c7d379dc056f9da0c26eb0f52710 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 16 Mar 2013 15:46:10 +0100 Subject: [PATCH] Improve expected outcome description of failing test. --- test/tests/Item.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tests/Item.js b/test/tests/Item.js index e731d311..a00b7bf9 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -639,8 +639,8 @@ test('blendmode on an item in a transformed group', function() { }); var raster = layer.rasterize(); - compareRgbColors(raster.getPixel(0, 0), new RgbColor(1, 0, 0), 'Top left pixel'); - compareRgbColors(raster.getPixel(50, 50), new RgbColor(1, 1, 0), 'Middle center pixel'); + compareRgbColors(raster.getPixel(0, 0), new RgbColor(1, 0, 0), 'Top left pixel should be red:'); + compareRgbColors(raster.getPixel(50, 50), new RgbColor(1, 1, 0), 'Middle center pixel should be yellow:'); raster.remove(); path2.position = [0, 0]; @@ -649,6 +649,6 @@ test('blendmode on an item in a transformed group', function() { group.position = [50, 50]; var raster = layer.rasterize(); - compareRgbColors(raster.getPixel(0, 0), new RgbColor(1, 0, 0), 'Top left pixel'); - compareRgbColors(raster.getPixel(50, 50), new RgbColor(1, 1, 0), 'Middle center pixel'); + compareRgbColors(raster.getPixel(0, 0), new RgbColor(1, 0, 0), 'Top left pixel should be red:'); + compareRgbColors(raster.getPixel(50, 50), new RgbColor(1, 1, 0), 'Middle center pixel should be yellow:'); });