[go: nahoru, domu]

Skip to content

Commit

Permalink
Add rebeccapurple test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 7, 2015
1 parent de0429f commit 4b6bd05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/color/rgb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ suite.addBatch({
assert.rgbEqual(d3.rgb("aliceblue"), 240, 248, 255);
assert.rgbEqual(d3.rgb("yellow"), 255, 255, 0);
},
"parses \"rebeccapurple\"": function(d3) {
assert.rgbEqual(d3.rgb("rebeccapurple"), 102, 51, 153);
},
"parses and converts HSL format (e.g., \"hsl(60, 100%, 20%)\")": function(d3) {
assert.rgbEqual(d3.rgb("hsl(60, 100%, 20%)"), 102, 102, 0);
},
Expand Down

0 comments on commit 4b6bd05

Please sign in to comment.