mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Implement unit test comparator for Color and improve new comparator code.
This commit is contained in:
parent
b8674a3bc1
commit
c5a2a51f3e
8 changed files with 130 additions and 136 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue