Skip to content

Commit 4eba622

Browse files
[[Bugfix 19619]] Updated test file
The test script for the properties of the clock has been updated to reflect the new method of storing the color properties as strings. With this new method, if the color is set to a string that does not include an alpha value, then no alpha value will be returned.
1 parent bf65af7 commit 4eba622

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

extensions/widgets/clock/tests/properties.livecodescript

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ on TestGetDefaultFaceColor
4646
end TestGetDefaultFaceColor
4747

4848
on TestSettingFaceColor
49-
set the dayFaceColor of widget "testClock" to "0,255,0"
49+
set the dayFaceColor of widget "testClock" to "0,255,0,255"
5050
TestAssert "dayFaceColor sucessfully set to non-default", the dayFaceColor of widget "testClock" is "0,255,0,255"
51-
set the nightFaceColor of widget "testClock" to "0,0,255"
51+
set the nightFaceColor of widget "testClock" to "0,0,255,255"
5252
TestAssert "nightFaceColor sucessfully set to non-default", the nightFaceColor of widget "testClock" is "0,0,255,255"
5353
end TestSettingFaceColor
5454

@@ -58,9 +58,9 @@ on TestDefaultSecondHandColor
5858
end TestDefaultSecondHandColor
5959

6060
on TestSettingSecondHandColor
61-
set the daySecondHandColor of widget "testClock" to "0,255,0"
61+
set the daySecondHandColor of widget "testClock" to "0,255,0,255"
6262
TestAssert "daySecondHandColor sucessfully set to non-default", the daySecondHandColor of widget "testClock" is "0,255,0,255"
63-
set the nightSecondHandColor of widget "testClock" to "0,0,255"
63+
set the nightSecondHandColor of widget "testClock" to "0,0,255,255"
6464
TestAssert "nightSecondHandColor sucessfully set to non-default", the nightSecondHandColor of widget "testClock" is "0,0,255,255"
6565
end TestSettingSecondHandColor
6666

@@ -70,9 +70,9 @@ on TestDefaultMinuteHandColor
7070
end TestDefaultMinuteHandColor
7171

7272
on TestSettingMinuteHandColor
73-
set the dayMinuteHandColor of widget "testClock" to "0,255,0"
73+
set the dayMinuteHandColor of widget "testClock" to "0,255,0,255"
7474
TestAssert "dayMinuteHandColor sucessfully set to non-default", the dayMinuteHandColor of widget "testClock" is "0,255,0,255"
75-
set the nightMinuteHandColor of widget "testClock" to "0,0,255"
75+
set the nightMinuteHandColor of widget "testClock" to "0,0,255,255"
7676
TestAssert "nightMinuteHandColor sucessfully set to non-default", the nightMinuteHandColor of widget "testClock" is "0,0,255,255"
7777
end TestSettingMinuteHandColor
7878

@@ -82,9 +82,9 @@ on TestDefaultHourHandColor
8282
end TestDefaultHourHandColor
8383

8484
on TestSettingHourHandColor
85-
set the dayHourHandColor of widget "testClock" to "0,255,0"
85+
set the dayHourHandColor of widget "testClock" to "0,255,0,255"
8686
TestAssert "dayHourHandColor sucessfully set to non-default", the dayHourHandColor of widget "testClock" is "0,255,0,255"
87-
set the nightHourHandColor of widget "testClock" to "0,0,255"
87+
set the nightHourHandColor of widget "testClock" to "0,0,255,255"
8888
TestAssert "nightHourHandColor sucessfully set to non-default", the nightHourHandColor of widget "testClock" is "0,0,255,255"
8989
end TestSettingHourHandColor
9090

@@ -94,8 +94,8 @@ on TestDefaultNumberColor
9494
end TestDefaultNumberColor
9595

9696
on TestSettingNumberColor
97-
set the dayNumberColor of widget "testClock" to "0,255,0"
97+
set the dayNumberColor of widget "testClock" to "0,255,0,255"
9898
TestAssert "dayNumberColor sucessfully set to non-default", the dayNumberColor of widget "testClock" is "0,255,0,255"
99-
set the nightNumberColor of widget "testClock" to "0,0,255"
99+
set the nightNumberColor of widget "testClock" to "0,0,255,255"
100100
TestAssert "nightNumberColor sucessfully set to non-default", the nightNumberColor of widget "testClock" is "0,0,255,255"
101101
end TestSettingNumberColor

0 commit comments

Comments
 (0)