Remove create message from contexts

This commit is contained in:
Frank A. Krueger 2017-06-19 21:58:06 -07:00
parent 0537ccf2fe
commit 6423df5217
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ namespace Ooui
public CanvasRenderingContext2D ()
: base ("#canvasRenderingContext2D")
{
UpdateStateMessages (ms => ms.Clear ());
}
}

View File

@ -18,6 +18,7 @@ namespace Tests
var c2d2 = c.GetContext2D ();
Assert.AreEqual (2, c.StateMessages.Count);
Assert.AreEqual (c2d, c2d2);
Assert.AreEqual (0, c2d.StateMessages.Count);
}
[TestMethod]