-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1243 from shinji-yoshida/flx_group_revive
FlxGroup: implement revive()
- Loading branch information
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package flixel.effects.particles; | ||
|
||
import flixel.effects.particles.FlxEmitter; | ||
import massive.munit.Assert; | ||
|
||
class FlxEmitterTest extends FlxTest | ||
{ | ||
var emitter:FlxEmitter; | ||
|
||
@Before | ||
function before():Void | ||
{ | ||
emitter = new FlxEmitter(); | ||
|
||
destroyable = emitter; | ||
} | ||
|
||
@Test | ||
function testStartShouldNotReviveMembers():Void | ||
{ | ||
emitter.makeParticles(1, 1, 1); | ||
// precondition | ||
Assert.isFalse(emitter.exists); | ||
emitter.forEach(function(each){Assert.isFalse(each.exists);}); | ||
// exercise | ||
emitter.start(); | ||
// verify | ||
Assert.isTrue(emitter.exists); | ||
emitter.forEach(function(each){Assert.isFalse(each.exists);}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters