Improve testing support

This commit is contained in:
Joshua Granick
2015-01-29 12:00:58 -08:00
parent 9777ef4001
commit 41fcc1f4df
5 changed files with 36 additions and 77 deletions

View File

@@ -58,11 +58,7 @@ class ApplicationMain {
}
#if js
#if munit
embed (null, ::WIN_WIDTH::, ::WIN_HEIGHT::, "::WIN_FLASHBACKGROUND::");
#end
#else
#if (!html5 || munit)
create ();
#end
@@ -71,6 +67,8 @@ class ApplicationMain {
public static function start ():Void {
#if !munit
app = new ::APP_MAIN:: ();
app.create (config);
@@ -80,6 +78,12 @@ class ApplicationMain {
Sys.exit (result);
#end
#else
new ::APP_MAIN:: ();
#end
}