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