Skip to content

Commit 2770a80

Browse files
committed
Fix unit tests for CSS values after white-space removal.
1 parent b532390 commit 2770a80

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/tests/Color.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,38 @@ test('Set named color', function() {
1616
var path = new Path();
1717
path.fillColor = 'red';
1818
compareColors(path.fillColor, new Color(1, 0, 0));
19-
equals(path.fillColor.toCSS(), 'rgb(255, 0, 0)');
19+
equals(path.fillColor.toCSS(), 'rgb(255,0,0)');
2020
});
2121

2222
test('Set color to hex', function() {
2323
var path = new Path();
2424
path.fillColor = '#ff0000';
2525
compareColors(path.fillColor, new Color(1, 0, 0));
26-
equals(path.fillColor.toCSS(), 'rgb(255, 0, 0)');
26+
equals(path.fillColor.toCSS(), 'rgb(255,0,0)');
2727

2828
var path = new Path();
2929
path.fillColor = '#f00';
3030
compareColors(path.fillColor, new Color(1, 0, 0));
31-
equals(path.fillColor.toCSS(), 'rgb(255, 0, 0)');
31+
equals(path.fillColor.toCSS(), 'rgb(255,0,0)');
3232
});
3333

3434
test('Set color to object', function() {
3535
var path = new Path();
3636
path.fillColor = { red: 1, green: 0, blue: 1};
3737
compareColors(path.fillColor, new Color(1, 0, 1));
38-
equals(path.fillColor.toCSS(), 'rgb(255, 0, 255)');
38+
equals(path.fillColor.toCSS(), 'rgb(255,0,255)');
3939

4040
var path = new Path();
4141
path.fillColor = { gray: 0.2 };
4242
compareColors(path.fillColor, new Color(0.2));
43-
equals(path.fillColor.toCSS(), 'rgb(51, 51, 51)');
43+
equals(path.fillColor.toCSS(), 'rgb(51,51,51)');
4444
});
4545

4646
test('Set color to array', function() {
4747
var path = new Path();
4848
path.fillColor = [1, 0, 0];
4949
compareColors(path.fillColor, new Color(1, 0, 0));
50-
equals(path.fillColor.toCSS(), 'rgb(255, 0, 0)');
50+
equals(path.fillColor.toCSS(), 'rgb(255,0,0)');
5151
});
5252

5353
test('Creating Colors', function() {

0 commit comments

Comments
 (0)