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

Commit 4e38057

Browse files
committed
[Tests][emscripten] Fix some incorrect platform skip checks.
Some platform tests weren't correctly updated when changing "the platform" from "HTML" to "HTML5".
1 parent 65e4c53 commit 4e38057

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/lcs/core/files/files.livecodescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ on TestSpecialFolderPath
179179
end if
180180

181181
// Only Linux and HTML5 do not have a Document special folder
182-
put the platform contains "linux" or the platform is "html" into tSkip
182+
put the platform contains "linux" or the platform is "html5" into tSkip
183183
__testSpecialFolder tSkip, "documents"
184184

185185
// Only mobiles have Cache special folder
@@ -192,13 +192,13 @@ on TestSpecialFolderPath
192192

193193
// Not all the platforms actually have a Desktop folder - such as servers
194194
// so we only check that the path returned is not empty.
195-
if the environment is "mobile" or the platform is "html" then
195+
if the environment is "mobile" or the platform is "html5" then
196196
TestSkip "specialFolderPath(desktop) is not empty"
197197
else
198198
TestAssert "specialFolderPath(desktop) is not empty", specialFolderPath("desktop") is not empty
199199
end if
200200

201-
put the environment is "mobile" or the platform contains "linux" or the platform is "html" into tSkip
201+
put the environment is "mobile" or the platform contains "linux" or the platform is "html5" into tSkip
202202
__testSpecialFolder tSkip, "system"
203203
__testSpecialFolder tSkip, "support"
204204

tests/lcs/core/interface/interface.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ end TestMoveControl
713713

714714
-- no key options working properly
715715
on TestUndo
716-
if the platform is "HTML" then
716+
if the platform is "HTML5" then
717717
TestSkip "key options", "bug 16544"
718718
exit TestUndo
719719
end if

tests/lcs/core/multimedia/multimedia.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end if
3535
end TestMultimedia1
3636
on TestMultimedia2
3737

38-
if the platform is not among the items of "linux,HTML" and \
38+
if the platform is not among the items of "linux,HTML5" and \
3939
the qtversion is not "0.0" then
4040
TestAssert "test", the qteffects is not empty
4141
else

0 commit comments

Comments
 (0)