static createCanvasElement() {
    const canvas = /** @type {!HTMLCanvasElement} */(document.createElement(
        'canvas'));

    return canvas;
  }
Creates a canvas element for testing.

@return {!HTMLCanvasElement}