Have a look at the munit wiki, there is some metadata you can use to run a function before the test class.
In this function, have a line (maybe some jquery) that creates the appropriate div and appends it to the body, if it doesn't exist already.
Hope that makes sense, let me know if you need more specific instructions.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
I haven't tested this code, but hopefully something like this would work...import js.JQuery;
@BeforeClass public function beforeClass():Void { // This will run once per test class
var div =
new JQuery("#haxe:jeash");
if (div.length == 0)
{
div = new JQuery("<div id='haxe:jeash'></div>");
div.appendTo(js.Lib.document.body);
}
}