1 Test rgba() color parsing results
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS parse('rgba(0.9.9%, 0%, 0%, 1)') is 'RGBA[102, 102, 102, 255]'
7 PASS parse('rgba(0, 0.., 0, 1)') is 'RGBA[102, 102, 102, 255]'
8 PASS parse('rgba(10%, .%, 0%, 1)') is 'RGBA[102, 102, 102, 255]'
9 PASS parse('rgba(13.37%1337%, 5%, 50.0%, 1)') is 'RGBA[102, 102, 102, 255]'
10 PASS parse('rgba(%, 50%, 50.0%, 1)') is 'RGBA[102, 102, 102, 255]'
11 PASS parse('rgba(50.0%, 50%, a%, 1)') is 'RGBA[102, 102, 102, 255]'
12 PASS parse('rgba(500%, 0%, 0%, 1)') is 'RGBA[255, 0, 0, 255]'
13 PASS parse('rgba(100%, 100%, 100%, 1)') is 'RGBA[255, 255, 255, 255]'
14 PASS parse('rgba(10.5%, 80%, 70%, 1)') is 'RGBA[26, 204, 179, 255]'
15 PASS parse('rgba(0%, 0%, 0%, 1)') is 'RGBA[0, 0, 0, 255]'
16 PASS parse('rgba(50.0%, 50.0%, 50.0%, 1)') is 'RGBA[128, 128, 128, 255]'
17 PASS parse('rgba(100%, 100%, 100%, 1)') is 'RGBA[255, 255, 255, 255]'
18 PASS parse('rgba(10.5%, 80%, 70%, 1)') is 'RGBA[26, 204, 179, 255]'
19 PASS parse('rgba(55.5%, 0.5%, 110%, 1)') is 'RGBA[142, 1, 255, 255]'
20 PASS parse('rgba(60.59998%, 0.59999%, 110.12345%, 1)') is 'RGBA[155, 1, 255, 255]'
21 PASS parse('rgba(10.999%, 0.999%, 0.000009%, 1)') is 'RGBA[28, 2, 0, 255]'
22 PASS parse('rgba(79.99999%, 99.99999%, 500%, 1)') is 'RGBA[204, 255, 255, 255]'
23 PASS parse('rgba(0, 0, 0, -0.10)') is 'RGBA[0, 0, 0, 0]'
24 PASS parse('rgba(0, 0, 0, -5.0)') is 'RGBA[0, 0, 0, 0]'
25 PASS parse('rgba(0, 0, 0, 5.0)') is 'RGBA[0, 0, 0, 255]'
26 PASS parse('rgba(0, 0, 0, -1)') is 'RGBA[0, 0, 0, 0]'
27 PASS parse('rgba(0, 0, 0, 0)') is 'RGBA[0, 0, 0, 0]'
28 PASS parse('rgba(0, 0, 0, 2)') is 'RGBA[0, 0, 0, 255]'
29 PASS parse('rgba(0, 0, 0, 2.0)') is 'RGBA[0, 0, 0, 255]'
30 PASS parse('rgba(0, 0, 0, 0.0)') is 'RGBA[0, 0, 0, 0]'
31 PASS parse('rgba(0, 0, 0, 00.0)') is 'RGBA[0, 0, 0, 0]'
32 PASS parse('rgba(0, 0, 0, 0.00)') is 'RGBA[0, 0, 0, 0]'
33 PASS parse('rgba(0, 0, 0, .1)') is 'RGBA[0, 0, 0, 25]'
34 PASS parse('rgba(0, 0, 0, .2)') is 'RGBA[0, 0, 0, 51]'
35 PASS parse('rgba(0, 0, 0, .3)') is 'RGBA[0, 0, 0, 76]'
36 PASS parse('rgba(0, 0, 0, .4)') is 'RGBA[0, 0, 0, 102]'
37 PASS parse('rgba(0, 0, 0, .5)') is 'RGBA[0, 0, 0, 127]'
38 PASS parse('rgba(0, 0, 0, .6)') is 'RGBA[0, 0, 0, 153]'
39 PASS parse('rgba(0, 0, 0, .7)') is 'RGBA[0, 0, 0, 179]'
40 PASS parse('rgba(0, 0, 0, .8)') is 'RGBA[0, 0, 0, 204]'
41 PASS parse('rgba(0, 0, 0, .9)') is 'RGBA[0, 0, 0, 230]'
42 PASS parse('rgba(0, 0, 0, 0.1)') is 'RGBA[0, 0, 0, 25]'
43 PASS parse('rgba(0, 0, 0, 0.2)') is 'RGBA[0, 0, 0, 51]'
44 PASS parse('rgba(0, 0, 0, 0.3)') is 'RGBA[0, 0, 0, 76]'
45 PASS parse('rgba(0, 0, 0, 0.4)') is 'RGBA[0, 0, 0, 102]'
46 PASS parse('rgba(0, 0, 0, 0.5)') is 'RGBA[0, 0, 0, 127]'
47 PASS parse('rgba(0, 0, 0, 0.6)') is 'RGBA[0, 0, 0, 153]'
48 PASS parse('rgba(0, 0, 0, 0.7)') is 'RGBA[0, 0, 0, 179]'
49 PASS parse('rgba(0, 0, 0, 0.8)') is 'RGBA[0, 0, 0, 204]'
50 PASS parse('rgba(0, 0, 0, 0.9)') is 'RGBA[0, 0, 0, 230]'
51 PASS parse('rgba(0, 0, 0, 1.0)') is 'RGBA[0, 0, 0, 255]'
52 PASS parse('rgba(0, 0, 0, 0.10)') is 'RGBA[0, 0, 0, 25]'
53 PASS parse('rgba(0, 0, 0, 0.20)') is 'RGBA[0, 0, 0, 51]'
54 PASS parse('rgba(0, 0, 0, 0.30)') is 'RGBA[0, 0, 0, 76]'
55 PASS parse('rgba(0, 0, 0, 0.40)') is 'RGBA[0, 0, 0, 102]'
56 PASS parse('rgba(0, 0, 0, 0.50)') is 'RGBA[0, 0, 0, 127]'
57 PASS parse('rgba(0, 0, 0, 0.60)') is 'RGBA[0, 0, 0, 153]'
58 PASS parse('rgba(0, 0, 0, 0.70)') is 'RGBA[0, 0, 0, 179]'
59 PASS parse('rgba(0, 0, 0, 0.80)') is 'RGBA[0, 0, 0, 204]'
60 PASS parse('rgba(0, 0, 0, 0.90)') is 'RGBA[0, 0, 0, 230]'
61 PASS parse('rgba(0, 0, 0, 1.00)') is 'RGBA[0, 0, 0, 255]'
62 PASS parse('rgba(0, 0, 0, .10)') is 'RGBA[0, 0, 0, 25]'
63 PASS parse('rgba(0, 0, 0, .20)') is 'RGBA[0, 0, 0, 51]'
64 PASS parse('rgba(0, 0, 0, .30)') is 'RGBA[0, 0, 0, 76]'
65 PASS parse('rgba(0, 0, 0, .40)') is 'RGBA[0, 0, 0, 102]'
66 PASS parse('rgba(0, 0, 0, .50)') is 'RGBA[0, 0, 0, 127]'
67 PASS parse('rgba(0, 0, 0, .60)') is 'RGBA[0, 0, 0, 153]'
68 PASS parse('rgba(0, 0, 0, .70)') is 'RGBA[0, 0, 0, 179]'
69 PASS parse('rgba(0, 0, 0, .80)') is 'RGBA[0, 0, 0, 204]'
70 PASS parse('rgba(0, 0, 0, .90)') is 'RGBA[0, 0, 0, 230]'
71 PASS parse('rgba(0, 0, 0, 0.10000000000000000000000)') is 'RGBA[0, 0, 0, 25]'
72 PASS parse('rgba(0, 0, 0, 0.20000000000000000000000)') is 'RGBA[0, 0, 0, 51]'
73 PASS parse('rgba(0, 0, 0, 0.30000000000000000000000)') is 'RGBA[0, 0, 0, 76]'
74 PASS parse('rgba(0, 0, 0, 0.40000000000000000000000)') is 'RGBA[0, 0, 0, 102]'
75 PASS parse('rgba(0, 0, 0, 0.50000000000000000000000)') is 'RGBA[0, 0, 0, 127]'
76 PASS parse('rgba(0, 0, 0, 0.60000000000000000000000)') is 'RGBA[0, 0, 0, 153]'
77 PASS parse('rgba(0, 0, 0, 0.70000000000000000000000)') is 'RGBA[0, 0, 0, 179]'
78 PASS parse('rgba(0, 0, 0, 0.80000000000000000000000)') is 'RGBA[0, 0, 0, 204]'
79 PASS parse('rgba(0, 0, 0, 0.90000000000000000000000)') is 'RGBA[0, 0, 0, 230]'
80 PASS parse('rgba(0, 0, 0, 1.00000000000000000000000)') is 'RGBA[0, 0, 0, 255]'
81 PASS parse('rgba(0, 0, 0, 0.990)') is 'RGBA[0, 0, 0, 253]'
82 PASS parse('rgba(0, 0, 0, 0.991)') is 'RGBA[0, 0, 0, 253]'
83 PASS parse('rgba(0, 0, 0, 0.992)') is 'RGBA[0, 0, 0, 253]'
84 PASS parse('rgba(0, 0, 0, 0.993)') is 'RGBA[0, 0, 0, 254]'
85 PASS parse('rgba(0, 0, 0, 0.994)') is 'RGBA[0, 0, 0, 254]'
86 PASS parse('rgba(0, 0, 0, 0.995)') is 'RGBA[0, 0, 0, 254]'
87 PASS parse('rgba(0, 0, 0, 0.996)') is 'RGBA[0, 0, 0, 254]'
88 PASS parse('rgba(0, 0, 0, 0.997)') is 'RGBA[0, 0, 0, 255]'
89 PASS parse('rgba(0, 0, 0, 0.998)') is 'RGBA[0, 0, 0, 255]'
90 PASS parse('rgba(0, 0, 0, 0.999)') is 'RGBA[0, 0, 0, 255]'
91 PASS successfullyParsed is true