public void TestODH()
{
TestableDOH odh = new TestableDOH();
SciterWindow wnd = new SciterWindow();
wnd.CreateMainWindow(1500, 800);
wnd.Title = "Wtf";
bool res = wnd.LoadHtml(@"
<html>
<style>
body { wtf: 123; }
</style>
<script type='text/tiscript'>
</script>
</html>
");
Assert.IsTrue(res);
PInvokeWindows.MSG msg;
while(PInvokeWindows.GetMessage(out msg, IntPtr.Zero, 0, 0) != 0)
{
wnd.Show();
PInvokeWindows.TranslateMessage(ref msg);
PInvokeWindows.DispatchMessage(ref msg);
}
Assert.IsTrue(odh.msgs.Count == 1);
}