Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ce8b63d

Browse files
committed
[21683] Tweaked tests
1 parent 857c738 commit ce8b63d

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

extensions/widgets/clock/tests/properties.livecodescript

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,18 @@ on TestSettingLocalTimeZone
3838
set the timeZone of widget "testClock" to ""
3939
TestAssert "timeZone successfully set to local", the timeZone of widget "testClock" is ""
4040
end TestSettingLocalTimeZone
41+
42+
43+
on TestSetReadOnlyPropOfWidget
44+
45+
local tName
46+
put the name of widget "testClock" into tName
47+
TestAssertThrow "set read-only prop", \
48+
"_TestSetReadOnlyPropOfWidgetError", the long id of me, \
49+
"EE_PROPERTY_CANTSETOBJECT", tName
50+
51+
end TestSetReadOnlyPropOfWidget
52+
53+
command _TestSetReadOnlyPropOfWidgetError pWidget
54+
set the isDay of pWidget to true
55+
end _TestSetReadOnlyPropOfWidgetError

tests/lcs/core/engine/widget.livecodescript

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,6 @@ on TestWidgetThrowInOnCreate
8686
delete stack "WidgetThrowOnSaveTest"
8787
end TestWidgetThrowInOnCreate
8888

89-
on TestSetReadOnlyPropOfWidget
90-
local tSVG
91-
create widget "mySVG" as "com.livecode.widget.svgpath"
92-
put it into tSVG
93-
TestAssertThrow "set read-only prop", \
94-
"_TestSetReadOnlyPropOfWidgetError", the long id of me, \
95-
"EE_PROPERTY_CANTSETOBJECT", tSVG
96-
end TestSetReadOnlyPropOfWidget
97-
98-
private command _TestSetReadOnlyPropOfWidgetError pWidget
99-
set the scaledWidth of pWidget to 100
100-
end _TestSetReadOnlyPropOfWidgetError
101-
10289
on TestWidgetRetainRep
10390
create stack "WidgetRetainRepTest"
10491
set the defaultStack to "WidgetRetainRepTest"

0 commit comments

Comments
 (0)