-
Notifications
You must be signed in to change notification settings - Fork 0
/
jwlua_classtests.lua
108 lines (102 loc) · 4.72 KB
/
jwlua_classtests.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
function plugindef()
-- This function and the 'finaleplugin' namespace
-- are both reserved for the plug-in definition.
finaleplugin.NoStore = true
return "Finale Lua Class Tests", "Class Tests", "Test the validity of Finale Lua classes"
end
if finenv.IsRGPLua and not finenv.ConsoleIsAvailable then -- if new lua
require('mobdebug').start()
end
-- Load the toolkit functions needed for the tests:
require("tools/jwluatesttools")
-- Validate the current file prior to the test:
if not CheckForOfficialTestTemplate() then return end
-- Load and execute the unit tests for the classes:
if LuaVersion_ >= 5.4 then
require("classtests/jwluatest_close")
end
require("classtests/jwluatest_fcactivelyric")
require("classtests/jwluatest_fcallotment")
require("classtests/jwluatest_fcarticulationdef")
require("classtests/jwluatest_fcbackwardrepeat")
require("classtests/jwluatest_fcbeatchartelement")
require("classtests/jwluatest_fcbookmark")
require("classtests/jwluatest_fccategorydef")
require("classtests/jwluatest_fccellclefchange")
require("classtests/jwluatest_fccellgraphic")
require("classtests/jwluatest_fccellmetrics")
require("classtests/jwluatest_fccelltext")
require("classtests/jwluatest_fcchord")
require("classtests/jwluatest_fcchordprefs")
require("classtests/jwluatest_fcchordsuffixelement")
require("classtests/jwluatest_fcchordsuffixkeynumberoffsets")
require("classtests/jwluatest_fcclefdef")
require("classtests/jwluatest_fccustomkeymodedef")
require("classtests/jwluatest_fccustomkeymodesymbollist")
require("classtests/jwluatest_fccustomsmartlinedef")
require("classtests/jwluatest_fcdistanceprefs")
require("classtests/jwluatest_fcendingrepeat")
require("classtests/jwluatest_fcentrymetrics")
require("classtests/jwluatest_fcfontdialog")
require("classtests/jwluatest_fcfontinfo")
require("classtests/jwluatest_fcfreezesystem")
require("classtests/jwluatest_fcfretbarreitem")
require("classtests/jwluatest_fcfretboardstyledef")
require("classtests/jwluatest_fcfretinstrumentdef")
require("classtests/jwluatest_fcfretitem")
require("classtests/jwluatest_fcgeneralprefs")
require("classtests/jwluatest_fcgridsguidesprefs")
require("classtests/jwluatest_fcgroup")
require("classtests/jwluatest_fclayerprefs")
require("classtests/jwluatest_fclistentomidiresult")
require("classtests/jwluatest_fclyricsbase")
require("classtests/jwluatest_fclyricsprefs")
require("classtests/jwluatest_fcmeasure")
require("classtests/jwluatest_fcmiscdocprefs")
require("classtests/jwluatest_fcmultimeasurerest")
require("classtests/jwluatest_fcmultimeasurerestprefs")
require("classtests/jwluatest_fcmusiccharacterprefs")
require("classtests/jwluatest_fcmusicspacingprefs")
require("classtests/jwluatest_fcnamepositionprefs")
require("classtests/jwluatest_fcnoteheadmod")
require("classtests/jwluatest_fcnumber")
require("classtests/jwluatest_fcpage")
require("classtests/jwluatest_fcpageformatprefs")
require("classtests/jwluatest_fcpagegraphic")
require("classtests/jwluatest_fcpagetext")
--require("classtests/jwluatest_fcpartextractprefs") -- not actually accessible from Lua
require("classtests/jwluatest_fcpartscopeprefs")
require("classtests/jwluatest_fcpartstaffvoicing")
require("classtests/jwluatest_fcpianobraceprefs")
require("classtests/jwluatest_fcplaybackprefs") -- FCPlaybackPrefs crashes Finale in JW Lua due to #define typo in source (fixed for RGP Lua)
require("classtests/jwluatest_fcrepeatprefs")
require("classtests/jwluatest_fcseparatemeasurenumber")
require("classtests/jwluatest_fcseparateplacement")
require("classtests/jwluatest_fcsizeprefs")
require("classtests/jwluatest_fcslurcontourprefs")
require("classtests/jwluatest_fcsmartshapeentryconnectstyle")
require("classtests/jwluatest_fcsmartshapeprefs")
require("classtests/jwluatest_fcstaff")
require("classtests/jwluatest_fcstaffnameposition")
require("classtests/jwluatest_fcstaffstyleassign")
require("classtests/jwluatest_fcstaffstyledef")
require("classtests/jwluatest_fcstaffsystem")
require("classtests/jwluatest_fcstemconnectiontable")
require("classtests/jwluatest_fcstemmod")
require("classtests/jwluatest_fcstring")
require("classtests/jwluatest_fcsyllablebase")
require("classtests/jwluatest_fcsyllableentrymod")
require("classtests/jwluatest_fctextblock")
require("classtests/jwluatest_fctextexpressiondef")
require("classtests/jwluatest_fctextrepeat")
require("classtests/jwluatest_fctextrepeatdef")
require("classtests/jwluatest_fctiecontourprefs")
require("classtests/jwluatest_fctieplacementprefs")
require("classtests/jwluatest_fctiemod")
require("classtests/jwluatest_fctieprefs")
require("classtests/jwluatest_fctransposer")
require("classtests/jwluatest_fctuplet")
require("classtests/jwluatest_fctupletprefs")
require("classtests/jwluatest_fcui")
-- Output the results from the tests:
PrintTestResult()