package flixel.system.frontEnds;

import flixel.FlxG;

class SoundFrontEndTest
{
	@Test // #1511
	function testPlayInvalidSoundPathNoCrash()
	{
		FlxG.sound.play("assets/invalid");
	}
	
	@Test // #1511
	function testPlayMusicInvalidSoundPathNoCrash()
	{
		FlxG.sound.playMusic("assets/invalid");
	}
	
	@Test // #1511
	function testLoadInvalidSoundPathNoCrash()
	{
		FlxG.sound.load("assets/invalid").play();
	}
}
package flixel.system.frontEnds;

import flixel.FlxG;

class SoundFrontEndTest
{
	#if FLX_SOUND_SYSTEM
	@Test // #1511
	function testPlayInvalidSoundPathNoCrash()
	{
		FlxG.sound.play("assets/invalid");
	}
	
	@Test // #1511
	function testPlayMusicInvalidSoundPathNoCrash()
	{
		FlxG.sound.playMusic("assets/invalid");
	}
	
	@Test // #1511
	function testLoadInvalidSoundPathNoCrash()
	{
		FlxG.sound.load("assets/invalid").play();
	}
	#end
}
Fix unit test compilation with FLX_NO_SOUND_SYSTEM
Fix unit test compilation with FLX_NO_SOUND_SYSTEM

HaxeFlixel/flixel