Changeset ef4b3ae in rtems-testing


Ignore:
Timestamp:
May 12, 2010, 7:34:38 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
f167c98
Parents:
b78f8ae
Message:

2010-05-12 Jennifer Averett <Jennifer.Averett@…>

  • ReportsHtml?.cc: Added sort ability to size report. Resolved a bug that resulted in mal-formed html.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    rb78f8ae ref4b3ae  
     12010-05-12      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * ReportsHtml.cc: Added sort ability to size report. Resolved a bug
     4        that resulted in mal-formed html.
     5
    162010-05-12      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • rtems-coverage/ReportsHtml.cc

    rb78f8ae ref4b3ae  
    119119      fprintf(
    120120        aFile,
    121         "<pre class=\"code\">\n"
    122121        "<table class=\"covoar table-autosort:0 table-autofilter table-autopage:10 table-page-number:pagenum table-page-count:pages\">\n"
    123122        "<thead>\n"
     
    150149    fprintf(
    151150      aFile,
    152       "<pre class=\"code\">\n"
    153151      "<table class=\"covoar table-autosort:0 table-autofilter table-autopage:10 table-page-number:pagenum table-page-count:pages\">\n"
    154152      "<thead>\n"
     
    179177    fprintf(
    180178      aFile,
    181       "<table class=\"covoar-table\">\n"
    182       "<tbody class=\"covoar-tbody\">\n"
    183       "<tr class=\"covoar-tr covoar-tr-first\">\n"
    184       "<th class=\"covoar-th\">Size</th>\n"
    185       "<th class=\"covoar-th\">Symbol</th>\n"
    186       "<th class=\"covoar-th\">File</th>\n"
     179      "<table class=\"covoar table-autosort:0 table-autofilter table-autopage:10 table-page-number:pagenum table-page-count:pages\">\n"
     180      "<thead>\n"
     181      "<tr>\n"
     182      "<th class=\"table-sortable:numeric\" align=\"left\">Size</th>\n"
     183      "<th class=\"table-sortable:default\" align=\"left\">Symbol</th>\n"
     184      "<th class=\"table-sortable:default\" align=\"left\">File</th>\n"
    187185      "</tr>\n"
     186      "</thead>\n"
    188187    );
    189188    return aFile;
     
    413412
    414413    // Mark the background color different for odd and even lines.
    415     fprintf( report, "</tr>\n");
    416414    if ( ( count%2 ) == 0 )
    417415      fprintf( report, "<tr class=\"covoar-tr covoar-tr-even\">\n");
     
    467465
    468466    // Mark the background color different for odd and even lines.
    469     fprintf( report, "</tr>\n");
    470467    if ( ( count%2 ) == 0 )
    471468      fprintf( report, "<tr class=\"covoar-tr covoar-tr-even\">\n");
     
    541538  {
    542539    // Mark the background color different for odd and even lines.
    543     fprintf( report, "</tr>\n");
    544540    if ( ( count%2 ) == 0 )
    545541      fprintf( report, "<tr class=\"covoar-tr covoar-tr-even\">\n");
     
    568564    );
    569565
    570 
     566    fprintf( report, "</tr>\n");
    571567
    572568    return true;
     
    581577  {
    582578    // Mark the background color different for odd and even lines.
    583     fprintf( report, "</tr>\n");
    584579    if ( ( count%2 ) == 0 )
    585580      fprintf( report, "<tr class=\"covoar-tr covoar-tr-even\">\n");
     
    608603    );
    609604
     605    fprintf( report, "</tr>\n");
    610606    return true;
    611607  }
     
    681677  )
    682678  {
     679    fprintf(
     680      aFile,
     681      "<tfoot>\n"
     682      "<tr>\n"
     683      "<td class=\"table-page:previous\" style=\"cursor:pointer;\">&lt; &lt; Previous</td>\n"
     684      "<td colspan=\"1\" style=\"text-align:center;\">Page <span id=\"pagenum\"></span>&nbsp;of <span id=\"pages\"></span></td>\n"
     685      "<td class=\"table-page:next\" style=\"cursor:pointer;\">Next &gt; &gt;</td>\n"
     686      "</tr>\n"
     687      "</tfoot>\n"
     688      "</tbody>\n"
     689      "</table>\n"
     690      "</pre>\n"
     691      "</body>\n"
     692      "</html>"
     693    );
     694
     695    CloseFile( aFile );
     696  }
     697
     698  void ReportsHtml::CloseSymbolSummaryFile(
     699    FILE*  aFile
     700  )
     701  {
    683702    fprintf( aFile, "</tbody>\n" );
    684703    fprintf( aFile, "</table>\n" );
     
    690709  }
    691710
    692   void ReportsHtml::CloseSymbolSummaryFile(
    693     FILE*  aFile
    694   )
    695   {
    696     fprintf( aFile, "</tbody>\n" );
    697     fprintf( aFile, "</table>\n" );
    698     fprintf( aFile, "</pre>\n" );
    699     fprintf( aFile,"</body>\n");
    700     fprintf( aFile,"</html>");
    701 
    702     CloseFile( aFile );
    703   }
    704 
    705711}
Note: See TracChangeset for help on using the changeset viewer.