Code coverage report for ol/imagecanvas.js

Statements: 66.67% (6 / 9)      Branches: 100% (0 / 0)      Functions: 0% (0 / 2)      Lines: 66.67% (6 / 9)      Ignored: none     

All files » ol/ » imagecanvas.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 391   1 1                         1                         1           1      
goog.provide('ol.ImageCanvas');
 
goog.require('ol.ImageBase');
goog.require('ol.ImageState');
 
 
 
/**
 * @constructor
 * @extends {ol.ImageBase}
 * @param {ol.Extent} extent Extent.
 * @param {number} resolution Resolution.
 * @param {number} pixelRatio Pixel ratio.
 * @param {Array.<ol.Attribution>} attributions Attributions.
 * @param {HTMLCanvasElement} canvas Canvas.
 */
ol.ImageCanvas = function(extent, resolution, pixelRatio, attributions,
    canvas) {
 
  goog.base(this, extent, resolution, pixelRatio, ol.ImageState.LOADED,
      attributions);
 
  /**
   * @private
   * @type {HTMLCanvasElement}
   */
  this.canvas_ = canvas;
 
};
goog.inherits(ol.ImageCanvas, ol.ImageBase);
 
 
/**
 * @inheritDoc
 */
ol.ImageCanvas.prototype.getImage = function(opt_context) {
  return this.canvas_;
};