Skip to content

Commit

Permalink
Fixed two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaylorMullen committed Oct 15, 2013
1 parent 289770f commit 8abfec9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var EndGate;

if (this._playing) {
stepCount = Math.floor(timeSinceStep / this._stepEvery);
if (stepCount !== 0) {
if (stepCount > 0) {
this._lastStepAt = gameTime.Now.getTime();
this.Step(stepCount);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ module EndGate.Graphics {

if (this._playing) {
stepCount = Math.floor(timeSinceStep / this._stepEvery);
if (stepCount !== 0) {
if (stepCount > 0) {
this._lastStepAt = gameTime.Now.getTime();
this.Step(stepCount);
}
Expand Down
2 changes: 1 addition & 1 deletion EndGate/tests/EndGate.Core.JS.Tests/Tests/GameFacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

game = new eg.Game(canvas);

QUnit.equal(holder.children.length, 2);
QUnit.equal(holder.children.length, 1);
game.Dispose();
QUnit.equal(holder.children.length, 0);
});
Expand Down

0 comments on commit 8abfec9

Please sign in to comment.