This repository was archived by the owner on Aug 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
extensions/widgets/clock/tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ""
4040end 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
Original file line number Diff line number Diff line change @@ -86,19 +86,6 @@ on TestWidgetThrowInOnCreate
8686 delete stack "WidgetThrowOnSaveTest"
8787end 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-
10289on TestWidgetRetainRep
10390 create stack "WidgetRetainRepTest"
10491 set the defaultStack to "WidgetRetainRepTest"
You can’t perform that action at this time.
0 commit comments