B2G/gecko/accessible/tests/mochitest/name/markup.js
/**
 * Process every 'markup' element and test names for it. Used by testNames
 * function.
 */
Process every 'markup' element and test names for it. Used by testNames
function.
Process every ' markup ' element and test names for it . Used by testNames function .
function testNamesForMarkup(aMarkupElm)
{
  if (gDumpToConsole)
    dump("\nProcessing markup '" + aMarkupElm.getAttribute("id") + "'\n");
  var div = document.createElement("div");
  div.setAttribute("id", "test");
  var child = aMarkupElm.firstChild;
  while (child) {
    var newChild = document.importNode(child, true);
    div.appendChild(newChild);
    child = child.nextSibling;
  }
  if (gDumpToConsole) {
    dump("\nProcessing markup. Wait for reorder event on " +
         prettyName(document) + "'\n");
  }
  waitForEvent(EVENT_REORDER, document, testNamesForMarkupRules,
                null, aMarkupElm, div);
  document.body.appendChild(div);
}
function testNamesForMarkup ( aMarkupElm ) { if ( gDumpToConsole ) dump ( "\nProcessing markup '" + aMarkupElm . getAttribute ( "id" ) + "'\n" ) ; var div = document . createElement ( "div" ) ; div . setAttribute ( "id" , "test" ) ; var child = aMarkupElm . firstChild ; while ( child ) { var newChild = document . importNode ( child , true ) ; div . appendChild ( newChild ) ; child = child . nextSibling ; } if ( gDumpToConsole ) { dump ( "\nProcessing markup. Wait for reorder event on " + prettyName ( document ) + "'\n" ) ; } waitForEvent ( EVENT_REORDER , document , testNamesForMarkupRules , null , aMarkupElm , div ) ; document . body . appendChild ( div ) ; }
Process every 'markup' element and test names for it.
Process every ' markup ' element and test names for it .