Testharness report for Colors.
This is the unit test report for Colors, which produces integrity checks and output for debugging Colors.
| Test suite status | |
|---|---|
| Scribunto test cases | |
| Code coverage |
Unit test report for Colors.
- Test members missing: none
- Test cases failing: none
- Execution time: 0.6ms
Scribunto test cases
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
p.fromRgb(64, 74, 87) | { alp = 1, tup = { 64, 74, 87 }, typ = "rgb"} | { alp = 1, tup = { 64, 74, 87 }, typ = "rgb"} | ||
p.fromRgb(0, 155, 190, 0.1) | { alp = 0.1, tup = { 0, 155, 190 }, typ = "rgb"} | { alp = 0.1, tup = { 0, 155, 190 }, typ = "rgb"} | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
{{#invoke:colors|wikia}} | invalid SASS parameter name supplied | invalid SASS parameter name supplied | ||
{{#invoke:colors|wikia|color-button-text}} | #000000 | #000000 | ||
{{#invoke:colors|wikia|dropdown-background-color}} | #ffffff | #ffffff | ||
{{#invoke:colors|wikia|dropdown-menu-highlight}} | rgba(11, 0, 128, 0.1) | rgba(11, 0, 128, 0.1) | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
{{#invoke:colors|main}} | you must specify a function to call | you must specify a function to call | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
p.instance({ alp = 1, tup = { 64, 74, 87 }, typ = "rgb"}) | true | true | ||
p.instance({ alp = 1, tup = { 214, 0.15, 0.3 }, typ = "hsl"}) | true | true | ||
p.instance("hsl(214, 15%, 30%)") | false | false | ||
p.instance("#404a57") | false | false | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
{{#invoke:colors|text}} | no color supplied | no color supplied | ||
{{#invoke:colors|text|blue}} | #000000 | #000000 | ||
{{#invoke:colors|text|rgb(58, 58, 58)}} | #ffffff | #ffffff | ||
{{#invoke:colors|text|$color-community-header}} | #000000 | #000000 | ||
{{#invoke:colors|text|$color-community-header|#0f0f0f|#f0f0f0}} | #0f0f0f | #0f0f0f | ||
{{#invoke:colors|text|yellow|lum=true}} | #000000 | #000000 | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
p.fromHsl(214, 0.15, 0.3) | { alp = 1, tup = { 214, 0.15, 0.3 }, typ = "hsl"} | { alp = 1, tup = { 214, 0.15, 0.3 }, typ = "hsl"} | ||
p.fromHsl(191, 1, 0.37, 0.1) | { alp = 0.1, tup = { 191, 1, 0.37 }, typ = "hsl"} | { alp = 0.1, tup = { 191, 1, 0.37 }, typ = "hsl"} | ||
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
{{#invoke:colors|css}} | no styling supplied | no styling supplied | ||
{{#invoke:colors|css|background-color: $dropdown-menu-highlight; color: $color-links;}} | background-color: rgba(11, 0, 128, 0.1); color: #0b0080; | background-color: rgba(11, 0, 128, 0.1); color: #0b0080; | ||
{{#invoke:colors|css|background-color: $infobox-background; clear: left; float: left; margin: 0 15px 15px 0; width: 270px;}} | background-color: #e7e6f2; clear: left; float: left; margin: 0 15px 15px 0; width: 270px; | background-color: #e7e6f2; clear: left; float: left; margin: 0 15px 15px 0; width: 270px; | ||
{{#invoke:colors|css|background-color: $color-community-header; color: $color-community-header-text;}} | background-color: #f6f6f6; color: #000000; | background-color: #f6f6f6; color: #000000; | ||
{{#invoke:colors|css|background-color: $infobox-background; border-color: $color-links; color: $color-text;}} | background-color: #e7e6f2; border-color: #0b0080; color: #3a3a3a; | background-color: #e7e6f2; border-color: #0b0080; color: #3a3a3a; | ||