FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
livecode/tests/lcs/docs/docsparser.livecodescript at develop · livecode/livecode · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
livecode
/
livecode
Public archive
Notifications
You must be signed in to change notification settings
Fork
223
Star
517
Code
Pull requests
189
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
livecode
/
tests
/
lcs
/
docs
/
docsparser.livecodescript
Copy path
More file actions
More file actions
Latest commit
History
History
History
70 lines (55 loc) · 2.32 KB
Breadcrumbs
livecode
/
tests
/
lcs
/
docs
/
docsparser.livecodescript
Copy path
File metadata and controls
70 lines (55 loc) · 2.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
script
"DocsParser"
/*
Copyright (C) 2015 LiveCode Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LiveCode. If not see <http://www.gnu.org/licenses/>.
*/
on
TestSetup
TestSkipIfNot
"docs"
--
Only run these tests on desktop platforms
if
the
platform
is not among
the
items
of
"MacOS,Windows,Linux"
then
return
"SKIP Tests are not runnable on"
&&
the
platform
end if
local
tDocsParser
put
TestGetEngineRepositoryPath()
&
"/ide-support/revdocsparser.livecodescript"
into
tDocsParser
start
using
stack
tDocsParser
end
TestSetup
on
TestBug16323
local
tDoc
put
"/*"
into
tDoc
put
return
&
"Name: OnOpen"
after
tDoc
put
return
&
"Type: message"
after
tDoc
put
return
&
"Syntax: OnOpen"
after
tDoc
put
return
&
"Name: OnClose"
after
tDoc
put
return
&
"Type: message"
after
tDoc
put
return
&
"Syntax: OnClose"
after
tDoc
put
return
&
"*/"
after
tDoc
put
return
&
"module com.livecode.widget"
after
tDoc
put
return
&
"end module"
after
tDoc
local
tParsed
put
revDocsGenerateDocsFileFromText(
tDoc
,
""
)
into
tParsed
local
tArray
put
revDocsParseDocTextToLibraryArray(
""
,
tParsed
,
""
,
""
)
into
tArray
TestAssert
"unwanted syntax element accumulation"
,
tArray
[
"doc"
][
2
][
"Syntax"
][
2
]
is
empty
end
TestBug16323
on
TestBug17523
local
tModule
put
"widget com.livecode.testdocs"
into
tModule
put
return
&
"/**"
after
tModule
put
return
&
"Summary: Test"
after
tModule
put
return
&
"*/"
after
tModule
put
return
&
"property"
&&
quote
&
"testProp"
&
quote
&&
"get mTest"
after
tModule
put
return
&
"end widget"
after
tModule
local
tParsed
put
revDocsGenerateDocsFileFromText(
tModule
,
""
)
into
tParsed
local
tArray
put
revDocsParseDocTextToLibraryArray(
""
,
tParsed
,
""
,
""
)
into
tArray
TestAssert
"property name has quotes stripped"
,
tArray
[
"doc"
][
1
][
"display name"
]
is
"testProp"
end
TestBug17523
Back
|
FazBrowse Home
|
New Git URL