Skip to content

Commit

Permalink
Add a test for #2011
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Dec 21, 2016
1 parent 764a5a8 commit 000bac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flixel/FlxGame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,15 @@ class FlxGame extends Sprite
FlxG.inputs.onFocus();
}

private function onFocusLost(_):Void
private function onFocusLost(event:Event):Void
{
#if next
if (_ != null && _.target != FlxG.stage)
if (event != null && event.target != FlxG.stage)
return;
#end

#if flash
if (_lostFocus)
if (_lostFocus)
return; // Don't run this function twice (bug in standalone flash player)
#end

Expand Down
1 change: 1 addition & 0 deletions tests/unit/src/flixel/util/FlxStringUtilTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class FlxStringUtilTest
Assert.areEqual("0.60", FlxStringUtil.formatMoney(0.6)); // #1754
Assert.areEqual("0", FlxStringUtil.formatMoney(0.6, false));
Assert.areEqual("0.00", FlxStringUtil.formatMoney(0));
Assert.areEqual("4.03", FlxStringUtil.formatMoney(4.0312));

Assert.areEqual("-100,000,000.00", FlxStringUtil.formatMoney(-100000000));
Assert.areEqual("-110.20", FlxStringUtil.formatMoney(-110.2));
Expand Down

0 comments on commit 000bac9

Please sign in to comment.