forked from qt-creator/qt-creator
Lua: Add waitms test
Change-Id: I281f0a5595140ff450e1a30e189286e1a5d8cf9d Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -20,7 +20,15 @@ local function testSearchInPath()
|
|||||||
print("Hostname found at:", result)
|
print("Hostname found at:", result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function testWaitMs()
|
||||||
|
local u = require("Utils")
|
||||||
|
print("Starting to wait ...")
|
||||||
|
a.wait(u.waitms(1000))
|
||||||
|
print("About a second should have elapsed now.")
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
testDirEntries = testDirEntries,
|
testDirEntries = testDirEntries,
|
||||||
testSearchInPath = testSearchInPath,
|
testSearchInPath = testSearchInPath,
|
||||||
|
testWaitMs = testWaitMs,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user