Implement unit test comparator for Color and improve new comparator code.

This commit is contained in:
Jürg Lehni 2014-12-28 15:21:38 +01:00
parent b8674a3bc1
commit c5a2a51f3e
8 changed files with 130 additions and 136 deletions

View file

@ -19,7 +19,7 @@ test('PointText', function() {
point: [100, 100],
content: 'Hello World!'
});
compareColors(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
equals(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
equals(text.point, new Point(100, 100), 'text.point');
equals(text.bounds.point, new Point(100, 87.4), 'text.bounds.point');
equals(text.bounds.size, new Size(77, 16.8), 'text.bounds.size', { tolerance: 1.0 });