B2G/gecko/toolkit/components/places/tests/head_common.js
/**
 * Reads the data from the named file, verifying the expected file length.
 *
 * @param aFileName
 *        This file should be located in the same folder as the test.
 * @param aExpectedLength
 *        Expected length of the file.
 *
 * @return The array of bytes read from the file.
 */
Reads the data from the named file, verifying the expected file length.
@param aFileName
This file should be located in the same folder as the test.
@param aExpectedLength
Expected length of the file.

@return The array of bytes read from the file.
Reads the data from the named file verifying the expected file length . @param aFileName This file should be located in the same folder as the test . @param aExpectedLength Expected length of the file . @return The array of bytes read from the file .
function readFileOfLength(aFileName, aExpectedLength) {
  let data = readFileData(do_get_file(aFileName));
  do_check_eq(data.length, aExpectedLength);
  return data;
}
function readFileOfLength ( aFileName , aExpectedLength ) { let data = readFileData ( do_get_file ( aFileName ) ) ; do_check_eq ( data . length , aExpectedLength ) ; return data ; }
Reads the data from the named file, verifying the expected file length.
Reads the data from the named file verifying the expected file length .