New part in Zframework
This commit is contained in:
@@ -9,6 +9,7 @@ TABLE= require'Zframework.tableExtend'
|
||||
STRING= require'Zframework.stringExtend'
|
||||
PROFILE= require'Zframework.profile'
|
||||
JSON= require'Zframework.json'
|
||||
TESTING= require'Zframework.testing'
|
||||
do--Add pcall & MES for JSON lib
|
||||
local encode,decode=JSON.encode,JSON.decode
|
||||
JSON.encode=function(val)
|
||||
|
||||
13
Zframework/testing.lua
Normal file
13
Zframework/testing.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
--Utils for testing
|
||||
local testing={}
|
||||
|
||||
--Wait for the scene swapping animation to finish
|
||||
function testing.switchSCN()
|
||||
while SCN.swapping do YIELD()end
|
||||
end
|
||||
|
||||
function testing.sleep(frames)
|
||||
for _=1,frames do YIELD()end
|
||||
end
|
||||
|
||||
return testing
|
||||
Reference in New Issue
Block a user