B2G/gecko/accessible/tests/mochitest/text.js
/**
 * Test characterCount for the given array of accessibles.
 *
 * @param aCount  [in] the expected character count
 * @param aIDs    [in] array of accessible identifiers to test
 */
Test characterCount for the given array of accessibles.
@param aCount  [in] the expected character count
@param aIDs    [in] array of accessible identifiers to test
Test characterCount for the given array of accessibles . @param aCount [ in ] the expected character count @param aIDs [ in ] array of accessible identifiers to test
function testCharacterCount(aIDs, aCount)
{
  for (var i = 0; i < aIDs.length; i++) {
    var textacc = getAccessible(aIDs[i], [nsIAccessibleText]);
    is(textacc.characterCount, aCount,
       "Wrong character count for " + prettyName(aIDs[i]));
  }
}
function testCharacterCount ( aIDs , aCount ) { for ( var i = 0 ; i < aIDs . length ; i ++ ) { var textacc = getAccessible ( aIDs [ i ] , [ nsIAccessibleText ] ) ; is ( textacc . characterCount , aCount , "Wrong character count for " + prettyName ( aIDs [ i ] ) ) ; } }
Test characterCount for the given array of accessibles.
Test characterCount for the given array of accessibles .