B2G/gecko/accessible/tests/mochitest/text.js
/**
 * Test words in a element.
 *
 * @param aElement   [in]           element identifier
 * @param aWords     [in]           array of expected words
 * @param aToDoFlag  [in, optional] kTodo or kOk for returned text
 */
Test words in a element.
@param aElement   [in]           element identifier
@param aWords     [in]           array of expected words
@param aToDoFlag  [in, optional] kTodo or kOk for returned text
Test words in a element . @param aElement [ in ] element identifier @param aWords [ in ] array of expected words @param aToDoFlag [ in optional ] kTodo or kOk for returned text
function testWords(aElement, aWords, aToDoFlag)
{
  if (aToDoFlag == null)
    aToDoFlag = kOk;
  testWordCount(aElement, aWords.length, aToDoFlag);
  for (var i = 0; i < aWords.length; i++) {
    testWordAt(aElement, i, aWords[i], aToDoFlag);
  }
}
function testWords ( aElement , aWords , aToDoFlag ) { if ( aToDoFlag == null ) aToDoFlag = kOk ; testWordCount ( aElement , aWords . length , aToDoFlag ) ; for ( var i = 0 ; i < aWords . length ; i ++ ) { testWordAt ( aElement , i , aWords [ i ] , aToDoFlag ) ; } }
Test words in a element.
Test words in a element .