Skip to content

Commit

Permalink
Improved docs and testing for color params.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 7, 2016
1 parent 5e8da4e commit e310453
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/xsd/galaxy.xsd
Expand Up @@ -2046,7 +2046,7 @@ in the [planemo documentation](http://planemo.readthedocs.io/en/latest/writing_a
#### ``color``
$attribute_list:value
$attribute_list:value,rgb
##### Examples
Expand Down
30 changes: 30 additions & 0 deletions test/functional/tools/color_param.xml
@@ -0,0 +1,30 @@
<tool id="color_param" name="color_param" version="1.0.0">
<command>
echo "$color_default" > $out_file1;
echo "$color_rgb" > $out_file2;
</command>
<inputs>
<param name="color_default" type="color" value="#aabbcc" />
<param name="color_rgb" type="color" value="#aabbcc" rgb="true" />
</inputs>
<outputs>
<data name="out_file1" format="txt" />
<data name="out_file2" format="txt" />
</outputs>
<tests>
<test>
<param name="color_default" value="#aaaaaa" />
<param name="color_rgb" value="#aaaaaa" />
<output name="out_file1">
<assert_contents>
<has_line line="#aaaaaa" />
</assert_contents>
</output>
<output name="out_file2">
<assert_contents>
<has_line line="(170, 170, 170)" />
</assert_contents>
</output>
</test>
</tests>
</tool>
1 change: 1 addition & 0 deletions test/functional/tools/samples_tool_conf.xml
Expand Up @@ -2,6 +2,7 @@
<toolbox tool_path="${tool_conf_dir}" is_shed_conf="false">
<tool file="upload.xml"/>
<tool file="simple_constructs.xml" />
<tool file="color_param.xml" />
<tool file="inheritance_simple.xml" />
<tool file="boolean_conditional.xml" />
<tool file="composite.xml" />
Expand Down

0 comments on commit e310453

Please sign in to comment.