Changeset 200


Ignore:
Timestamp:
09/20/13 21:43:02 (6 years ago)
Author:
nhoyt
Message:

ai-common.js

  • changed field in nullData from pctpass to pass

datasource.js

  • changed results.getResultSummary() to results.getRuleResultsSummary()
  • changed data.pctpass to data.pass and value to summary.passed

summary-grid.xml

  • changed ai-summary.label.pctpass to ai-summary.label.pass
  • changed ai-summary.tooltip.pctpass to ai-summary.tooltip.pass
  • changed data.pctpass to data.pass

summary-rc.xul
summary-wcag.xul

  • changed ai-summary.label.pctpass to ai-summary.label.pass
  • changed ai-summary.tooltip.pctpass to ai-summary.tooltip.pass

view-category.js

  • changed filteredResult.getResultSummary to filteredResult.getNodeResultSummary

view-details.js

  • changed ruleResult.getResultSummary to ruleResult.getNodeResultSummary
  • changed data.pctpass to data.pass and value to summary.passed

ai-sidebar.dtd

  • updated ai-sidebar.version to 0.1.14-01
  • changed rule category name Navigation to Site Navigation
  • changed ai-summary.label.pctpass to ai-summary.label.pass and value to "P"
  • changed ai-summary.tooltip.pctpass to ai-summary.tooltip.pass and value to "Passed"

ai-sidebar.properties

  • changed rule category name Navigation to Site Navigation

install.rdf

  • changed version to 0.1.14-01
  • changed maxVersion to 24.*
Location:
trunk/proto-14
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-14/chrome/content/ai-common.js

    r194 r200  
    4545  // object returned by getSummaryData fn. when ResultSummary has no data 
    4646  nullData: { 
    47     pctpass: '--', 
     47    pass:    '--', 
    4848    viol:    '--', 
    4949    warn:    '--', 
  • trunk/proto-14/chrome/content/datasource.js

    r194 r200  
    22 * @file datasource.js 
    33 * 
    4  * @desc Provide datasource API that mediates between the OAA Evaluation Library 
    5  *       and any of the sidebar view controllers. 
     4 * @desc Provide datasource API that mediates between the OAA Evaluation 
     5 *       Library and any of the sidebar view controllers. 
     6 * 
     7 *       The following methods are defined here, all as properties of 
     8 *       ainspectorSidebar: 
     9 *  
     10 *       getRulesetId() 
     11 *       evaluate() 
     12 *       storeAllRuleGroupResults() 
     13 *       getRuleGroupResults(viewIndex) 
     14 *       getSummaryData(viewIndex) 
     15 *       getRuleGroupConst(viewIndex) 
    616 */ 
    717 
     
    156166ainspectorSidebar.getSummaryData = function (viewIndex) { 
    157167  var results = ainspectorSidebar.getRuleGroupResults(viewIndex); 
    158   var summary = results.getResultSummary(); 
    159    
     168  var summary = results.getRuleResultsSummary(); 
     169 
    160170  // return null data if no results 
    161171  if (!summary.hasResults()) return ainspector.nullData; 
    162    
     172 
    163173  var data = { 
    164     pctpass: summary.percent_passed, 
     174    pass:    summary.passed, 
    165175    viol:    summary.violations, 
    166176    warn:    summary.warnings, 
  • trunk/proto-14/chrome/content/summary-grid.xml

    r165 r200  
    99      <xul:label 
    1010        class="summary-header-label" 
    11         value="&ai-summary.label.pctpass;" 
    12         tooltiptext="&ai-summary.tooltip.pctpass;"/> 
     11        value="&ai-summary.label.pass;" 
     12        tooltiptext="&ai-summary.tooltip.pass;"/> 
    1313      <xul:label 
    1414        class="summary-header-label" 
     
    3131      <xul:label 
    3232        class="summary-label" 
    33         tooltiptext="&ai-summary.tooltip.pctpass;" 
     33        tooltiptext="&ai-summary.tooltip.pass;" 
    3434        style="background: #B0E57C"/> 
    3535      <xul:label 
     
    5151        <body> 
    5252          var nodes = document.getAnonymousNodes(this); 
    53           nodes[0].setAttribute('value', data.pctpass); 
     53          nodes[0].setAttribute('value', data.pass); 
    5454          nodes[1].setAttribute('value', data.viol); 
    5555          nodes[2].setAttribute('value', data.warn); 
     
    6565      <xul:label 
    6666        class="tbl-summary-label" 
    67         tooltiptext="&ai-summary.tooltip.pctpass;"/> 
     67        tooltiptext="&ai-summary.tooltip.pass;"/> 
    6868      <xul:label 
    6969        class="tbl-summary-label" 
     
    8181        <body> 
    8282          var nodes = document.getAnonymousNodes(this); 
    83           nodes[1].setAttribute('value', data.pctpass); 
     83          nodes[1].setAttribute('value', data.pass); 
    8484          nodes[2].setAttribute('value', data.viol); 
    8585          nodes[3].setAttribute('value', data.warn); 
  • trunk/proto-14/chrome/content/summary-rc.xul

    r194 r200  
    1818            <label 
    1919              class="tbl-summary-header-label" 
    20               value="&ai-summary.label.pctpass;" 
    21               tooltiptext="&ai-summary.tooltip.pctpass;" 
     20              value="&ai-summary.label.pass;" 
     21              tooltiptext="&ai-summary.tooltip.pass;" 
    2222              style="border-left: 1px solid #bbb"/> 
    2323            <label 
  • trunk/proto-14/chrome/content/summary-wcag.xul

    r165 r200  
    1818            <label 
    1919              class="tbl-summary-header-label" 
    20               value="&ai-summary.label.pctpass;" 
    21               tooltiptext="&ai-summary.tooltip.pctpass;" 
     20              value="&ai-summary.label.pass;" 
     21              tooltiptext="&ai-summary.tooltip.pass;" 
    2222              style="border-left: 1px solid #bbb"/> 
    2323            <label 
  • trunk/proto-14/chrome/content/view-category.js

    r187 r200  
    6565  for (var i = 0; i < resultsCount; i++) { 
    6666    var filteredResult = filteredRuleResults[i]; 
    67     var summaryData = filteredResult.getResultSummary(); 
     67    var summaryData = filteredResult.getNodeResultSummary(); 
    6868    var hasResults = summaryData.hasResults(); 
    6969    table.push({ 
  • trunk/proto-14/chrome/content/view-details.js

    r186 r200  
    8181 
    8282ainspectorSidebar.getRuleResultSummaryData = function (ruleResult) { 
    83   var summary = ruleResult.getResultSummary(); 
     83  var summary = ruleResult.getNodeResultSummary(); 
    8484 
    8585  // return null data if no results 
     
    8787   
    8888  var data = { 
    89     pctpass: summary.percent_passed, 
     89    pass:    summary.passed, 
    9090    viol:    summary.violations, 
    9191    warn:    summary.warnings, 
  • trunk/proto-14/chrome/locale/en-US/ai-sidebar.dtd

    r196 r200  
    11<!ENTITY ainspector.title "AInspector"> 
    22<!ENTITY ai-sidebar.title "&ainspector.title; Sidebar"> 
    3 <!ENTITY ai-sidebar.version "0.1.13-05"> 
     3<!ENTITY ai-sidebar.version "0.1.14-01"> 
    44 
    55<!ENTITY ai-button.label.back              "Back"> 
     
    3434<!ENTITY ai-label.view.media       "Audio/Video"> 
    3535<!ENTITY ai-label.view.keyboard    "Keyboard Support"> 
    36 <!ENTITY ai-label.view.navigation  "Navigation"> 
     36<!ENTITY ai-label.view.navigation  "Site Navigation"> 
    3737<!ENTITY ai-label.view.all-rules   "All Rules"> 
    3838 
     
    6161<!ENTITY ai-label.title.media      "Audio/Video"> 
    6262<!ENTITY ai-label.title.keyboard   "Keyboard Support"> 
    63 <!ENTITY ai-label.title.navigation "Navigation"> 
     63<!ENTITY ai-label.title.navigation "Site Navigation"> 
    6464<!ENTITY ai-label.title.all-rules  "All Rules"> 
    6565 
     
    7070<!ENTITY ai-summary.label.category    "Category"> 
    7171<!ENTITY ai-summary.label.guideline   "Guideline"> 
    72 <!ENTITY ai-summary.label.pctpass     "&#37;P"> 
     72<!ENTITY ai-summary.label.pass        "P"> 
    7373<!ENTITY ai-summary.label.viol        "V"> 
    7474<!ENTITY ai-summary.label.warn        "W"> 
     
    7777<!ENTITY ai-summary.tooltip.category  "Rule Category"> 
    7878<!ENTITY ai-summary.tooltip.guideline "WCAG Guideline"> 
    79 <!ENTITY ai-summary.tooltip.pctpass   "Percentage of pass results"> 
     79<!ENTITY ai-summary.tooltip.pass      "Passed"> 
    8080<!ENTITY ai-summary.tooltip.viol      "Violations"> 
    8181<!ENTITY ai-summary.tooltip.warn      "Warnings"> 
  • trunk/proto-14/chrome/locale/en-US/ai-sidebar.properties

    r194 r200  
    1111view.title.media       = Audio/Video 
    1212view.title.keyboard    = Keyboard Support 
    13 view.title.navigation  = Navigation 
     13view.title.navigation  = Site Navigation 
    1414view.title.all-rules   = All Rules 
    1515 
  • trunk/proto-14/install.rdf

    r196 r200  
    1010        <em:name>AInspector Sidebar</em:name> 
    1111        <em:type>2</em:type> 
    12         <em:version>0.1.13-05</em:version> 
     12        <em:version>0.1.14-01</em:version> 
    1313 
    1414        <em:targetApplication> 
     
    1616                <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> 
    1717                <em:minVersion>7.0</em:minVersion> 
    18                 <em:maxVersion>23.0</em:maxVersion> 
     18                <em:maxVersion>24.*</em:maxVersion> 
    1919            </Description> 
    2020        </em:targetApplication> 
Note: See TracChangeset for help on using the changeset viewer.