mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-19 08:36:47 +00:00
Add Lua test for record model property
This commit is contained in:
parent
36198e9413
commit
5b2764e75a
1 changed files with 11 additions and 5 deletions
|
@ -119,7 +119,6 @@ local function testRecordStore(store, storeName, skipPairs)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
testing.expectEqual(status, true, storeName)
|
testing.expectEqual(status, true, storeName)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function testRecordStores()
|
local function testRecordStores()
|
||||||
|
@ -285,6 +284,12 @@ local function testCommitCrime()
|
||||||
testing.expectEqual(types.Player.getCrimeLevel(player), 0, "Crime level should not change if the victim's alarm value is low and there's no other witnesses")
|
testing.expectEqual(types.Player.getCrimeLevel(player), 0, "Crime level should not change if the victim's alarm value is low and there's no other witnesses")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function testRecordModelProperty()
|
||||||
|
initPlayer()
|
||||||
|
local player = world.players[1]
|
||||||
|
testing.expectEqual(types.NPC.record(player).model, 'meshes\\basicplayer.dae')
|
||||||
|
end
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
{'timers', testTimers},
|
{'timers', testTimers},
|
||||||
{'rotating player with controls.yawChange should change rotation', function()
|
{'rotating player with controls.yawChange should change rotation', function()
|
||||||
|
@ -345,7 +350,8 @@ tests = {
|
||||||
testing.runLocalTest(player, 'playerWeaponAttack')
|
testing.runLocalTest(player, 'playerWeaponAttack')
|
||||||
end},
|
end},
|
||||||
{'vfs', testVFS},
|
{'vfs', testVFS},
|
||||||
{'testCommitCrime', testCommitCrime}
|
{'testCommitCrime', testCommitCrime},
|
||||||
|
{'recordModelProperty', testRecordModelProperty},
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue