B2G/gecko/browser/components/thumbnails/test/browser_thumbnails_bug726727.js
/**
 * These tests ensure that capturing a sites's thumbnail, saving it and
 * retrieving it from the cache works.
 */
These tests ensure that capturing a sites's thumbnail, saving it and
retrieving it from the cache works.
These tests ensure that capturing a sites ' s thumbnail saving it and retrieving it from the cache works .
function runTests() {
  let tab = gBrowser.addTab("http://non-existant.url/");
  let browser = tab.linkedBrowser;
  yield browser.addEventListener("DOMContentLoaded", function onLoad() {
    browser.removeEventListener("DOMContentLoaded", onLoad, false);
    executeSoon(next);
  }, false);
  ok(!gBrowserThumbnails._shouldCapture(browser), "we're not going to capture an error page");
}
function runTests ( ) { let tab = gBrowser . addTab ( "http://non-existant.url/" ) ; let browser = tab . linkedBrowser ; yield browser . addEventListener ( "DOMContentLoaded" , function onLoad ( ) { browser . removeEventListener ( "DOMContentLoaded" , onLoad , false ) ; executeSoon ( next ) ; } , false ) ; ok ( ! gBrowserThumbnails . _shouldCapture ( browser ) , "we're not going to capture an error page" ) ; }
These tests ensure that capturing a sites's thumbnail, saving it and
 retrieving it from the cache works.
These tests ensure that capturing a sites ' s thumbnail saving it and retrieving it from the cache works .
// Create a tab that shows an error page.