B2G/gecko/browser/components/thumbnails/test/head.js
/**
 * Captures a screenshot for the currently selected tab, stores it in the cache,
 * retrieves it from the cache and compares pixel color values.
 * @param aRed The red component's intensity.
 * @param aGreen The green component's intensity.
 * @param aBlue The blue component's intensity.
 * @param aMessage The info message to print when comparing the pixel color.
 */
Captures a screenshot for the currently selected tab, stores it in the cache,
retrieves it from the cache and compares pixel color values.
@param aRed The red component's intensity.
@param aGreen The green component's intensity.
@param aBlue The blue component's intensity.
@param aMessage The info message to print when comparing the pixel color.
Captures a screenshot for the currently selected tab stores it in the cache retrieves it from the cache and compares pixel color values . @param aRed The red component ' s intensity . @param aGreen The green component ' s intensity . @param aBlue The blue component ' s intensity . @param aMessage The info message to print when comparing the pixel color .
function captureAndCheckColor(aRed, aGreen, aBlue, aMessage) {
  let browser = gBrowser.selectedBrowser;
  PageThumbs.captureAndStore(browser, function () {
    checkThumbnailColor(browser.currentURI.spec, aRed, aGreen, aBlue, aMessage);
  });
}
function captureAndCheckColor ( aRed , aGreen , aBlue , aMessage ) { let browser = gBrowser . selectedBrowser ; PageThumbs . captureAndStore ( browser , function ( ) { checkThumbnailColor ( browser . currentURI . spec , aRed , aGreen , aBlue , aMessage ) ; } ) ; }
Captures a screenshot for the currently selected tab, stores it in the cache,
 retrieves it from the cache and compares pixel color values.
Captures a screenshot for the currently selected tab stores it in the cache retrieves it from the cache and compares pixel color values .
// Capture the screenshot.