Changeset 228


Ignore:
Timestamp:
10/16/13 18:03:20 (6 years ago)
Author:
nhoyt
Message:

Overview: Removed two preferences: "Include element-level manual checks" and "Check for broken links"

datasource.js

  • removed references to brokenLinks pref. in evaluate fn. and to elementManualChecks pref. in storeAllRuleGroupResults fn.

evaluation.js, evaluation.xul, options.dtd

  • removed references to brokenLinks and elementManualChecks preferences

prefs.js

  • removed brokenLinks and elementManualChecks preferences
Location:
trunk/proto-14
Files:
5 edited

Legend:

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

    r200 r228  
    7777  var ruleLevels       = ainspector.evaluationPrefs.getPref('ruleLevels'); 
    7878  var recommendedRules = ainspector.evaluationPrefs.getPref('recommendedRules'); 
    79   var brokenLinks      = ainspector.evaluationPrefs.getPref('brokenLinks'); 
    8079  var layoutTables     = ainspector.evaluationPrefs.getPref('layoutTables'); 
    8180 
     
    8786    ruleset.setEvaluationLevels(ruleLevels); 
    8887    ruleset.setRecommendedRulesEnabled(recommendedRules); 
    89     ruleset.setBrokenLinkTesting(brokenLinks); 
    9088    ruleset.setDataTableAssumption(!layoutTables); 
    9189 
     
    106104    ainspector.log.debug("ruleLevels: " + ruleLevels); 
    107105    ainspector.log.debug("recommendedRules: " + recommendedRules); 
    108     ainspector.log.debug("brokenLinks: " + brokenLinks); 
    109106    ainspector.log.debug("layoutTables: " + layoutTables); 
    110107  } 
     
    123120  var numViews = ainspectorSidebar.numViews; 
    124121 
    125   // initialize ruleGroupResults array 
     122  // Initialize ruleGroupResults array 
    126123  ainspectorSidebar.ruleGroupResults = new Array(numViews); 
    127124 
    128   // Define the filter based on user preferences 
    129   var elementManualChecks = ainspector.evaluationPrefs.getPref('elementManualChecks'); 
    130  
    131   var filter = elementManualChecks ? 
    132         OpenAjax.a11y.RESULT_FILTER.ALL : 
    133         OpenAjax.a11y.RESULT_FILTER.ALL - OpenAjax.a11y.RESULT_FILTER.ELEMENT_MANUAL_CHECK; 
     125  // Define the filter 
     126  var filter = OpenAjax.a11y.RESULT_FILTER.ALL; 
    134127 
    135128  for (var viewIndex = 0; viewIndex < numViews; viewIndex++) { 
  • trunk/proto-14/chrome/content/preferences/evaluation.js

    r179 r228  
    3232      if (name === 'ruleLevels') 
    3333        return prefUtils.getIntPref(name); 
    34       if (name === 'elementManualChecks') 
    35         return prefUtils.getBoolPref(name); 
    3634      if (name === 'layoutTables') 
    37         return prefUtils.getBoolPref(name); 
    38       if (name === 'brokenLinks') 
    3935        return prefUtils.getBoolPref(name); 
    4036 
     
    8682    break; 
    8783 
    88   case 'elementManualChecks': 
    89     break; 
    90  
    9184  case 'layoutTables': 
    92     break; 
    93  
    94   case 'brokenLinks': 
    9585    break; 
    9686 
  • trunk/proto-14/chrome/content/preferences/evaluation.xul

    r195 r228  
    1414      <preference id="ainspector-rule-levels-pref" type="int" 
    1515        name="extensions.ainspector.evaluation.ruleLevels"/> 
    16       <preference id="ainspector-element-manual-checks-pref" type="bool" 
    17         name="extensions.ainspector.evaluation.elementManualChecks"/> 
    1816      <preference id="ainspector-layout-tables-pref" type="bool" 
    1917        name="extensions.ainspector.evaluation.layoutTables"/> 
    20       <preference id="ainspector-broken-links-pref" type="bool" 
    21         name="extensions.ainspector.evaluation.brokenLinks"/> 
    2218    </preferences> 
    2319 
     
    5450 
    5551    <groupbox class="secondary"> 
    56       <caption label="&groupbox.caption.evalResults;"/> 
    57       <vbox> 
    58         <checkbox id="ainspector-element-mc" preference="ainspector-element-manual-checks-pref" 
    59           label="&label.results.element-mc;"/> 
    60       </vbox> 
    61     </groupbox> 
    62  
    63     <groupbox class="secondary"> 
    6452      <caption label="&groupbox.caption.otherOptions;"/> 
    6553      <vbox> 
    6654        <checkbox id="ainspector-layout-tables" preference="ainspector-layout-tables-pref" 
    6755          label="&label.options.page-layout;"/> 
    68         <checkbox id="ainspector-broken-links" preference="ainspector-broken-links-pref" 
    69           label="&label.options.broken-links;"/> 
    7056      </vbox> 
    7157    </groupbox> 
  • trunk/proto-14/chrome/locale/en-US/options.dtd

    r147 r228  
    2626<!ENTITY groupbox.caption.rule-levels "Rule Levels"> 
    2727 
    28 <!ENTITY label.rule-levels.a-aa-aaa "A, AA, AAA"> 
    2928<!ENTITY label.rule-levels.a-aa     "A, AA"> 
    3029<!ENTITY label.rule-levels.a        "A"> 
    3130 
    32 <!ENTITY groupbox.caption.evalResults "Evaluation Results"> 
    33  
    34 <!ENTITY label.results.element-mc "Include element-level manual checks"> 
    35  
    36 <!ENTITY groupbox.caption.otherOptions "Other Evaluation Options"> 
     31<!ENTITY groupbox.caption.otherOptions "Other Options"> 
    3732 
    3833<!ENTITY label.options.page-layout  "Allow table markup for page layout"> 
    39 <!ENTITY label.options.broken-links "Check for broken links"> 
  • trunk/proto-14/defaults/preferences/prefs.js

    r195 r228  
    1010pref("extensions.ainspector.evaluation.recommendedRules", true); 
    1111pref("extensions.ainspector.evaluation.ruleLevels", 6); 
    12 pref("extensions.ainspector.evaluation.elementManualChecks", true); 
    1312pref("extensions.ainspector.evaluation.layoutTables", false); 
    14 pref("extensions.ainspector.evaluation.brokenLinks", false); 
    1513 
    1614// Advanced preferences 
Note: See TracChangeset for help on using the changeset viewer.