forked from 0ad/0ad
Fixes tests
This was SVN commit r14126.
This commit is contained in:
parent
37cedb8133
commit
174f636fd2
@ -1,8 +1,15 @@
|
||||
Engine.LoadHelperScript("ValueModification.js");
|
||||
Engine.LoadComponentScript("Player.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")
|
||||
|
||||
var cmp = ConstructComponent(10, "Player");
|
||||
ConstructComponent(SYSTEM_ENTITY, "EndGameManager");
|
||||
ConstructComponent(SYSTEM_ENTITY, "Timer");
|
||||
|
||||
TS_ASSERT_EQUALS(cmp.GetPopulationCount(), 0);
|
||||
TS_ASSERT_EQUALS(cmp.GetPopulationLimit(), 0);
|
||||
var cmpPlayer = ConstructComponent(10, "Player");
|
||||
|
||||
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationCount(), 0);
|
||||
TS_ASSERT_EQUALS(cmpPlayer.GetPopulationLimit(), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user