Tests for the Canvas.resolveContext command for 2D contexts.