B2G/gecko/browser/components/thumbnails/test/browser_thumbnails_redirect.js
/**
 * These tests ensure that we save and provide thumbnails for redirecting sites.
 */
These tests ensure that we save and provide thumbnails for redirecting sites.
These tests ensure that we save and provide thumbnails for redirecting sites .
function runTests() {
  yield addTab(URL);
  gBrowser.removeTab(gBrowser.selectedTab);
  yield addTab(URL);
  yield captureAndCheckColor(255, 0, 0, "we have a red thumbnail");
  yield whenFileExists(URL);
  yield checkThumbnailColor(URL, 255, 0, 0, "referrer has a red thumbnail");
}
function runTests ( ) { yield addTab ( URL ) ; gBrowser . removeTab ( gBrowser . selectedTab ) ; yield addTab ( URL ) ; yield captureAndCheckColor ( 255 , 0 , 0 , "we have a red thumbnail" ) ; yield whenFileExists ( URL ) ; yield checkThumbnailColor ( URL , 255 , 0 , 0 , "referrer has a red thumbnail" ) ; }
These tests ensure that we save and provide thumbnails for redirecting sites.
These tests ensure that we save and provide thumbnails for redirecting sites .
// Kick off history by loading a tab first or the test fails in single mode. // Create a tab, redirecting to a page with a red background. // Wait until the referrer's thumbnail's file has been written.