From 174f636fd2baf901a268c870594220bc352e76f5 Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Sun, 10 Nov 2013 03:24:29 +0000 Subject: [PATCH] Fixes tests This was SVN commit r14126. --- .../simulation/components/tests/test_Player.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/binaries/data/mods/public/simulation/components/tests/test_Player.js b/binaries/data/mods/public/simulation/components/tests/test_Player.js index e9bd4f7b17..4191a68622 100644 --- a/binaries/data/mods/public/simulation/components/tests/test_Player.js +++ b/binaries/data/mods/public/simulation/components/tests/test_Player.js @@ -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);