function displayReportDetail_(reportList) {
    // Clear the existing content.
    $(ReportingView.REPORTS_TBODY_ID).innerHTML = '';

    var empty = reportList.length == 0;
    setNodeDisplay($(ReportingView.REPORTS_EMPTY_ID), empty);
    setNodeDisplay($(ReportingView.REPORTS_TABLE_ID), !empty);
    if (empty)
      return;

    for (var i = 0; i < reportList.length; ++i) {
      var report = ensureObject_(reportList[i]);
      var tr = addNode($(ReportingView.REPORTS_TBODY_ID), 'tr');

      var queuedNode = addNode(tr, 'td');
      if (report.queued != undefined) {
        var queuedDate = timeutil.convertTimeTicksToDate(report.queued);
        timeutil.addNodeWithDate(queuedNode, queuedDate);
      }

      addNodeWithText(tr, 'td', report.url);

      var statusNode = addNode(tr, 'td');
      addTextNode(statusNode, report.status);
      addTextNode(statusNode, ' (' + report.group);
      if (report.depth !== undefined && report.depth > 0)
        addTextNode(statusNode, ', depth: ' + report.depth);
      if (report.attempts !== undefined && report.attempts > 0)
        addTextNode(statusNode, ', attempts: ' + report.attempts);
      addTextNode(statusNode, ')');

      addNodeWithText(tr, 'td', report.type);

      var contentNode = addNode(tr, 'td');
      if (report.type == 'network-error')
        displayNetworkErrorContent_(contentNode, report);
      else
        displayGenericReportContent_(contentNode, report);
    }
  }
/**
   * Displays information about each queued report in the Reporting cache.
   * REQUIRES: |reportList| must be an array
   */
Displays information about each queued report in the Reporting cache.
REQUIRES: |reportList| must be an array
Displays information about each queued report in the Reporting cache . REQUIRES : |reportList| must be an array
function displayReportDetail_(reportList) {
    $(ReportingView.REPORTS_TBODY_ID).innerHTML = '';
    var empty = reportList.length == 0;
    setNodeDisplay($(ReportingView.REPORTS_EMPTY_ID), empty);
    setNodeDisplay($(ReportingView.REPORTS_TABLE_ID), !empty);
    if (empty)
      return;
    for (var i = 0; i < reportList.length; ++i) {
      var report = ensureObject_(reportList[i]);
      var tr = addNode($(ReportingView.REPORTS_TBODY_ID), 'tr');
      var queuedNode = addNode(tr, 'td');
      if (report.queued != undefined) {
        var queuedDate = timeutil.convertTimeTicksToDate(report.queued);
        timeutil.addNodeWithDate(queuedNode, queuedDate);
      }
      addNodeWithText(tr, 'td', report.url);
      var statusNode = addNode(tr, 'td');
      addTextNode(statusNode, report.status);
      addTextNode(statusNode, ' (' + report.group);
      if (report.depth !== undefined && report.depth > 0)
        addTextNode(statusNode, ', depth: ' + report.depth);
      if (report.attempts !== undefined && report.attempts > 0)
        addTextNode(statusNode, ', attempts: ' + report.attempts);
      addTextNode(statusNode, ')');
      addNodeWithText(tr, 'td', report.type);
      var contentNode = addNode(tr, 'td');
      if (report.type == 'network-error')
        displayNetworkErrorContent_(contentNode, report);
      else
        displayGenericReportContent_(contentNode, report);
    }
  }
function displayReportDetail_ ( reportList ) { $ ( ReportingView . REPORTS_TBODY_ID ) . innerHTML = '' ; var empty = reportList . length == 0 ; setNodeDisplay ( $ ( ReportingView . REPORTS_EMPTY_ID ) , empty ) ; setNodeDisplay ( $ ( ReportingView . REPORTS_TABLE_ID ) , ! empty ) ; if ( empty ) return ; for ( var i = 0 ; i < reportList . length ; ++ i ) { var report = ensureObject_ ( reportList [ i ] ) ; var tr = addNode ( $ ( ReportingView . REPORTS_TBODY_ID ) , 'tr' ) ; var queuedNode = addNode ( tr , 'td' ) ; if ( report . queued != undefined ) { var queuedDate = timeutil . convertTimeTicksToDate ( report . queued ) ; timeutil . addNodeWithDate ( queuedNode , queuedDate ) ; } addNodeWithText ( tr , 'td' , report . url ) ; var statusNode = addNode ( tr , 'td' ) ; addTextNode ( statusNode , report . status ) ; addTextNode ( statusNode , ' (' + report . group ) ; if ( report . depth !== undefined && report . depth > 0 ) addTextNode ( statusNode , ', depth: ' + report . depth ) ; if ( report . attempts !== undefined && report . attempts > 0 ) addTextNode ( statusNode , ', attempts: ' + report . attempts ) ; addTextNode ( statusNode , ')' ) ; addNodeWithText ( tr , 'td' , report . type ) ; var contentNode = addNode ( tr , 'td' ) ; if ( report . type == 'network-error' ) displayNetworkErrorContent_ ( contentNode , report ) ; else displayGenericReportContent_ ( contentNode , report ) ; } }
Displays information about each queued report in the Reporting cache.
Displays information about each queued report in the Reporting cache .
// Clear the existing content.