B2G/gecko/accessible/tests/mochitest/name/markup.js
/**
 * Test name for current rule and current 'markup' element. Used by
 * testNamesForMarkup function.
 */
Test name for current rule and current 'markup' element. Used by
testNamesForMarkup function.
Test name for current rule and current ' markup ' element . Used by testNamesForMarkup function .
function testNameForRule(aElm, aRuleElm)
{
  if (aRuleElm.hasAttribute("attr")) {
    if (gDumpToConsole) {
      dump("\nProcessing rule { attr: " + aRuleElm.getAttribute("attr") +" }\n");
    }
    testNameForAttrRule(aElm, aRuleElm);
  } else if (aRuleElm.hasAttribute("elm")) {
    if (gDumpToConsole) {
      dump("\nProcessing rule { elm: " + aRuleElm.getAttribute("elm") +
           ", elmattr: " + aRuleElm.getAttribute("elmattr") +" }\n");
    }
    testNameForElmRule(aElm, aRuleElm);
  } else if (aRuleElm.getAttribute("fromsubtree") == "true") {
    if (gDumpToConsole) {
      dump("\nProcessing rule { fromsubtree: " +
           aRuleElm.getAttribute("fromsubtree") +" }\n");
    }
    testNameForSubtreeRule(aElm, aRuleElm);
  }
}
function testNameForRule ( aElm , aRuleElm ) { if ( aRuleElm . hasAttribute ( "attr" ) ) { if ( gDumpToConsole ) { dump ( "\nProcessing rule { attr: " + aRuleElm . getAttribute ( "attr" ) + " }\n" ) ; } testNameForAttrRule ( aElm , aRuleElm ) ; } else if ( aRuleElm . hasAttribute ( "elm" ) ) { if ( gDumpToConsole ) { dump ( "\nProcessing rule { elm: " + aRuleElm . getAttribute ( "elm" ) + ", elmattr: " + aRuleElm . getAttribute ( "elmattr" ) + " }\n" ) ; } testNameForElmRule ( aElm , aRuleElm ) ; } else if ( aRuleElm . getAttribute ( "fromsubtree" ) == "true" ) { if ( gDumpToConsole ) { dump ( "\nProcessing rule { fromsubtree: " + aRuleElm . getAttribute ( "fromsubtree" ) + " }\n" ) ; } testNameForSubtreeRule ( aElm , aRuleElm ) ; } }
Test name for current rule and current 'markup' element.
Test name for current rule and current ' markup ' element .