B2G/gecko/image/test/browser/browser_bug666317.js
// Ensure that the image is decoded by drawing it to a canvas.
Ensure that the image is decoded by drawing it to a canvas.
Ensure that the image is decoded by drawing it to a canvas .
function forceDecodeImg() {
  let doc = gBrowser.getBrowserForTab(newTab).contentWindow.document;
  let img = doc.getElementById('testImg');
  let canvas = doc.createElement('canvas');
  let ctx = canvas.getContext('2d');
  ctx.drawImage(img, 0, 0);
}
function forceDecodeImg ( ) { let doc = gBrowser . getBrowserForTab ( newTab ) . contentWindow . document ; let img = doc . getElementById ( 'testImg' ) ; let canvas = doc . createElement ( 'canvas' ) ; let ctx = canvas . getContext ( '2d' ) ; ctx . drawImage ( img , 0 , 0 ) ; }
Ensure that the image is decoded by drawing it to a canvas.
Ensure that the image is decoded by drawing it to a canvas .