Test for Mouse.withCanvas.