Skip to content

Commit fe7aefb

Browse files
montegouldinglivecodeali
authored andcommitted
[Bug 18658] Add markerCount test
(cherry picked from commit b8eed1b)
1 parent 299ddae commit fe7aefb

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
script "SpinnerWidgetProperties"
2+
/*
3+
Copyright (C) 2016 LiveCode Ltd.
4+
5+
This file is part of LiveCode.
6+
7+
LiveCode is free software; you can redistribute it and/or modify it under
8+
the terms of the GNU General Public License v3 as published by the Free
9+
Software Foundation.
10+
11+
LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
18+
19+
local sID
20+
21+
on TestSetup
22+
TestLoadExtension "com.livecode.widget.spinner"
23+
24+
create stack
25+
create widget as "com.livecode.widget.spinner"
26+
27+
put it into sID
28+
end TestSetup
29+
30+
on _TestOutOfRangeMarkerCount
31+
set the markerCount of sID to 4
32+
end _TestOutOfRangeMarkerCount
33+
34+
on TestOutOfRangeMarkerCount
35+
TestAssertThrow "set markerCount to 4", "_TestOutOfRangeMarkerCount", \
36+
the long id of me, 863 -- Error occurred in extension
37+
end TestOutOfRangeMarkerCount

0 commit comments

Comments
 (0)