0ad/binaries/data/mods/public/simulation/components/tests/test_Player.js
historic_bruno 174f636fd2 Fixes tests
This was SVN commit r14126.
2013-11-10 03:24:29 +00:00

15 lines
604 B
JavaScript

Engine.LoadHelperScript("ValueModification.js");
Engine.LoadComponentScript("interfaces/EndGameManager.js")
Engine.LoadComponentScript("interfaces/TechnologyManager.js")
Engine.LoadComponentScript("interfaces/Timer.js")
Engine.LoadComponentScript("EndGameManager.js")
Engine.LoadComponentScript("Player.js");
Engine.LoadComponentScript("Timer.js")
ConstructComponent(SYSTEM_ENTITY, "EndGameManager");
ConstructComponent(SYSTEM_ENTITY, "Timer");
var cmpPlayer = ConstructComponent(10, "Player");
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationCount(), 0);
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationLimit(), 0);