Fix test for GuiInterface. Fixes #957.

This was SVN commit r10258.
This commit is contained in:
fcxSanya 2011-09-12 14:57:58 +00:00
parent 6629323f8d
commit eccf787ec8

View File

@ -44,6 +44,7 @@ AddMock(100, IID_Player, {
GetColour: function() { return { r: 1, g: 1, b: 1, a: 1}; }, GetColour: function() { return { r: 1, g: 1, b: 1, a: 1}; },
GetPopulationCount: function() { return 10; }, GetPopulationCount: function() { return 10; },
GetPopulationLimit: function() { return 20; }, GetPopulationLimit: function() { return 20; },
GetMaxPopulation: function() { return 200; },
GetResourceCounts: function() { return { food: 100 }; }, GetResourceCounts: function() { return { food: 100 }; },
IsTrainingQueueBlocked: function() { return false; }, IsTrainingQueueBlocked: function() { return false; },
GetState: function() { return "active"; }, GetState: function() { return "active"; },
@ -85,6 +86,7 @@ AddMock(101, IID_Player, {
GetColour: function() { return { r: 1, g: 0, b: 0, a: 1}; }, GetColour: function() { return { r: 1, g: 0, b: 0, a: 1}; },
GetPopulationCount: function() { return 40; }, GetPopulationCount: function() { return 40; },
GetPopulationLimit: function() { return 30; }, GetPopulationLimit: function() { return 30; },
GetMaxPopulation: function() { return 300; },
GetResourceCounts: function() { return { food: 200 }; }, GetResourceCounts: function() { return { food: 200 }; },
IsTrainingQueueBlocked: function() { return false; }, IsTrainingQueueBlocked: function() { return false; },
GetState: function() { return "active"; }, GetState: function() { return "active"; },
@ -128,6 +130,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
colour: { r:1, g:1, b:1, a:1 }, colour: { r:1, g:1, b:1, a:1 },
popCount: 10, popCount: 10,
popLimit: 20, popLimit: 20,
popMax: 200,
resourceCounts: { food: 100 }, resourceCounts: { food: 100 },
trainingQueueBlocked: false, trainingQueueBlocked: false,
state: "active", state: "active",
@ -142,6 +145,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), {
colour: { r:1, g:0, b:0, a:1 }, colour: { r:1, g:0, b:0, a:1 },
popCount: 40, popCount: 40,
popLimit: 30, popLimit: 30,
popMax: 300,
resourceCounts: { food: 200 }, resourceCounts: { food: 200 },
trainingQueueBlocked: false, trainingQueueBlocked: false,
state: "active", state: "active",
@ -163,6 +167,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), {
colour: { r:1, g:1, b:1, a:1 }, colour: { r:1, g:1, b:1, a:1 },
popCount: 10, popCount: 10,
popLimit: 20, popLimit: 20,
popMax: 200,
resourceCounts: { food: 100 }, resourceCounts: { food: 100 },
trainingQueueBlocked: false, trainingQueueBlocked: false,
state: "active", state: "active",
@ -193,6 +198,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), {
colour: { r:1, g:0, b:0, a:1 }, colour: { r:1, g:0, b:0, a:1 },
popCount: 40, popCount: 40,
popLimit: 30, popLimit: 30,
popMax: 300,
resourceCounts: { food: 200 }, resourceCounts: { food: 200 },
trainingQueueBlocked: false, trainingQueueBlocked: false,
state: "active", state: "active",