B2G/gecko/browser/base/content/test/newtab/head.js
/**
 * Resumes testing when all pages have been updated.
 */
Resumes testing when all pages have been updated.
Resumes testing when all pages have been updated .
function whenPagesUpdated(aCallback) {
  let page = {
    update: function () {
      NewTabUtils.allPages.unregister(this);
      executeSoon(aCallback || TestRunner.next);
    }
  };
  NewTabUtils.allPages.register(page);
  registerCleanupFunction(function () {
    NewTabUtils.allPages.unregister(page);
  });
}
function whenPagesUpdated ( aCallback ) { let page = { update : function ( ) { NewTabUtils . allPages . unregister ( this ) ; executeSoon ( aCallback || TestRunner . next ) ; } } ; NewTabUtils . allPages . register ( page ) ; registerCleanupFunction ( function ( ) { NewTabUtils . allPages . unregister ( page ) ; } ) ; }
Resumes testing when all pages have been updated.
Resumes testing when all pages have been updated .