Tags:
create new tag
view all tags

Tests for GaugePlugin

These are GaugePlugin tests.

Target Measure Bar Gauge

Gauge as image: type='tambar' Gauge as HTML table: type='simple' Value Range
-5
name='test01' value='-5'
-4
name='test02' value='-4'
-3
name='test03' value='-3'
-2
name='test04' value='-2'
-1
name='test05' value='-1'
name='test06' value='0'
1
name='test07' value='1'
2
name='test08' value='2'
3
name='test09' value='3'
4
name='test10' value='4'
5
name='test11' value='5'
6
name='test12' value='6'
7
name='test13' value='7'
8
name='test14' value='8'
9
name='test15' value='9'
10
name='test16' value='10'
11
name='test17' value='11'
12
name='test18' value='12'
13
name='test19' value='13'
14
name='test20' value='14'
15
name='test21' value='15'
16
name='test22' value='16'
17
name='test23' value='17'
18
name='test24' value='18'
19
name='test25' value='19'
20
name='test26' value='20'
21
name='test27' value='21'
22
name='test28' value='22'
23
name='test29' value='23'
24
name='test30' value='24'
25
name='test31' value='25'
26
name='test32' value='26'
27
name='test33' value='27'
28
name='test34' value='28'
29
name='test35' value='29'
30
name='test36' value='30'
31
name='test37' value='31'
32
name='test38' value='32'
33
name='test39' value='33'
34
name='test40' value='34'
35
name='test41' value='35'
36
name='test42' value='36'
37
name='test43' value='37'
38
name='test44' value='38'
39
name='test45' value='39'
40
name='test46' value='40'
41
name='test47' value='41'
42
name='test48' value='42'
43
name='test49' value='43'
44
name='test50' value='44'
45
name='test51' value='45'
46
name='test52' value='46'
47
name='test53' value='47'
48
name='test54' value='48'
49
name='test55' value='49'
50
name='test56' value='50'
51
name='test57' value='51'
52
name='test58' value='52'
53
name='test59' value='53'
54
name='test60' value='54'
55
name='test61' value='55'
56
name='test62' value='56'
57
name='test63' value='57'
58
name='test64' value='58'
59
name='test65' value='59'
60
name='test66' value='60'
61
name='test67' value='61'
62
name='test68' value='62'
63
name='test69' value='63'
64
name='test70' value='64'
65
name='test71' value='65'
66
name='test72' value='66'
67
name='test73' value='67'
68
name='test74' value='68'
69
name='test75' value='69'
70
name='test76' value='70'
71
name='test77' value='71'
72
name='test78' value='72'
73
name='test79' value='73'
74
name='test80' value='74'
75
name='test81' value='75'
76
name='test82' value='76'
77
name='test83' value='77'
78
name='test84' value='78'
79
name='test85' value='79'
80
name='test86' value='80'
81
name='test87' value='81'
82
name='test88' value='82'
83
name='test89' value='83'
84
name='test90' value='84'
85
name='test91' value='85'
86
name='test92' value='86'
87
name='test93' value='87'
88
name='test94' value='88'
89
name='test95' value='89'
90
name='test96' value='90'
91
name='test97' value='91'
92
name='test98' value='92'
93
name='test99' value='93'
94
name='test100' value='94'
95
name='test101' value='95'
96
name='test102' value='96'
97
name='test103' value='97'
98
name='test104' value='98'
99
name='test105' value='99'
100
name='test106' value='100'
101
name='test107' value='101'
102
name='test108' value='102'
103
name='test109' value='103'
104
name='test110' value='104'
105
name='test111' value='105'
Values less than and greater than scale
-10
name='edge1' value="-10"
1000
name='edge2' value="1000"
-500
name='edge3' value="-500" scale="-1000 -2000 -3000 -4000"
500
name='edge4' value="500" scale="1000 2000 3000 4000"
-5000
name='edge5' value="-5000" scale="-1000 -2000 -3000 -4000"
5000
name='edge6' value="5000" scale="1000 2000 3000 4000"
0.0005
name='edge7' value="0.0005" scale="0.001 0.002 0.003 0.004"
0.005
name='edge8' value="0.005" scale="0.001 0.002 0.003 0.004"
Error: no arguments at all so arg name is missing
GaugePlugin error: parameter name must be specified
no data
 
Make sure that more then one gauge can exist on a single line (on older browsers simple forces line break)
753
name='multiLine01' value='7'
name='multiLine02' value='53'
Value not defined
no data
no data
Value not defined, default sizes
name='error1'
no data
no data
Empty value
name='error2' value=''
no data
no data
Value not defined, but other parameters specified
name='error3' width="100" height="40"
Overriding the default colors. Instead of red, yellow, and then green it is green, yellow, and then red
8
name='color1' value='8' colors="#00FF00 #CCFFCC #FFFF00 #FFFFCC #FF0000 #FFCCCC"
38
name='color2' value='38' colors="#00FF00 #CCFFCC #FFFF00 #FFFFCC #FF0000 #FFCCCC"
78
name='color3' value='78' colors="#00FF00 #CCFFCC #FFFF00 #FFFFCC #FF0000 #FFCCCC"
Overriding the default tambar scale 0, 33, 67, 100
58
name='scale01' value="58" scale="0 40 80 120"
5
name='scale02' value="5" scale="-10 0 10 20"
-5
name='scale03' value="-5" scale="-10 0 10 20"
350
name='scale04' value="350" scale="100 200 300 400"
17.7
name='scale05' value="17.7" scale="0, 15.8, 22.5, 29.3"
600
name='scale06' value="600" scale="800 200 100 -100"
150
name='scale07' value="150" scale="800 200 100 -100"
75
name='scale08' value="75" scale="800 200 100 -100"
-75
name='scale09' value="-75" scale="800 200 100 -100"
-175
name='scale10' value="-175" scale="-100 -200 -400 -800"
-375
name='scale11' value="-375" scale="-100 -200 -400 -800"
-675
name='scale12' value="-675" scale="-100 -200 -400 -800"
-50
name='scale13' value="-50" scale="-100 -200 -400 -800"
-900
name='scale14' value="-900" scale="-100 -200 -400 -800"
1.23e1
name='scale15' value="1.23e1" scale="1e1 2e1 3e1 4e1"
2.23e-1
name='scale16' value="2.23e-1" scale="1e-1 2e-1 3e-1 4e-1"
3.23e-5
name='scale17' value="3.23e-5" scale="1e-5 2e-5 3e-5 4e-5"
Overriding the default tambar height 16
15
name='height1' value="15" height="40"
15
name='height2' value="15" height="8"
Overriding the default tambar width 60
15
name='width1' value="15" width="40"
15
name='width2' value="15" width="140"
Override the alt parameter
The actual value is 15
name='alt1' value="15" alt="The actual value is 15"
Overriding everything on the tambar
75
name='change01' value="75" colors="#00FF00 #CCFFCC #FFFF00 #FFFFCC #FF0000 #FFCCCC" scale="0,33,66,100" scalesize='50' height="32" width="140"
9
name='change02' value="9"
Add some additional IMG options
Text113Text2 --does not apply-- name='options01' value="13" align="top"
Text113Text2 --does not apply-- name='options02' value="13" align="bottom"
Text113Text2 --does not apply-- name='options03' value="13" align="middle"
Text113Text2 --does not apply-- name='options04' value="13" align="left"
Text113Text2 --does not apply-- name='options05' value="13" align="right"
All unknowns options are passed to the <img> tag.
26 --does not apply-- name='border01' value="26" style="border:5px solid black"
Change how the created tambar image is accessed
26 --does not apply-- Access via file:%br%name='access01' value="26" access="file";
--does not apply-- Access via inline (won't work on older browsers):
name='access02' value="26" access="inline";
GaugePlugin error: parameter access must be one of inline or file. --does not apply-- Error message should be generated:%br%name='access03' value="26" access="bad";

Trend Gauge

Trend gauge with different value
-1 value="-1"
value="0"
1 value="1"
-100 value="-100"
-0 value="-0"
100 value="100"
+100 value="+100"
Missing name or value parameters
1 type="trend" value="1" (No name specified)
no data type="trend" name="trendNoValue" (No value specified)
no data type="trend" (No name and value specified)
Specifying alt tag
This is an alt tag value="1" alt="This is an alt tag"
Change the size
1 value="1" width="50" height="50"
1 value="1" width="50" height="100"
1 value="1" width="100" height="50"
1 value="1" width="100"
1 value="1" height="100"

Invalid Gauge

Try an invalid type gauge
GaugePlugin error: Unknown gauge type 'bad' type="bad" value="1"

Related topics: GaugePlugin, VarGAUGE

-- Contributors: TWiki:Main/TaitCyrus, TWiki:Main/PeterThoeny - 2011-05-13

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r1 - 08 Apr 2010 - TWikiContributor

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.GaugePluginTests.