mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Improved docs and testing for color params.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user