Skip to content

Commit

Permalink
+ test Random.rgba()
Browse files Browse the repository at this point in the history
  • Loading branch information
nuysoft committed Apr 24, 2015
1 parent 2a0498f commit 33f749d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ define('mock/random/color',['./color_convert', './color_dict'], function(Convert
parseInt(rgb[1], 10) + ', ' +
parseInt(rgb[2], 10) + ')'
},
// rgb(128,255,255)
// rgb(128,255,255,0.3)
rgba: function() {
var hsv = this._goldenRatioColor()
var rgb = Convert.hsv2rgb(hsv)
Expand Down
6 changes: 6 additions & 0 deletions site/test.dpd.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ define([], function() {
'Mock.mock(\'@rgb\')',
'Mock.mock(\'@rgb()\')'
],
'Random.rgba()': [
'// Random.rgba()',
'Random.rgba()',
'Mock.mock(\'@rgba\')',
'Mock.mock(\'@rgba()\')'
],
'Random.hsl()': [
'// Random.hsl()',
'Random.hsl()',
Expand Down
2 changes: 1 addition & 1 deletion src/mock/random/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ define(['./color_convert', './color_dict'], function(Convert, DICT) {
parseInt(rgb[1], 10) + ', ' +
parseInt(rgb[2], 10) + ')'
},
// rgb(128,255,255)
// rgb(128,255,255,0.3)
rgba: function() {
var hsv = this._goldenRatioColor()
var rgb = Convert.hsv2rgb(hsv)
Expand Down

0 comments on commit 33f749d

Please sign in to comment.