function assertFileEntryPathsEqual(expectedPaths, fileEntries) {
  assertEquals(expectedPaths.length, fileEntries.length);

  var entryToPath = function(entry) {
    assertTrue(entry.isFile);
    return entry.fullPath;
  };

  var actualPaths = fileEntries.map(entryToPath);
  actualPaths.sort();
  expectedPaths = expectedPaths.slice();
  expectedPaths.sort();

  assertEquals(
      JSON.stringify(expectedPaths),
      JSON.stringify(actualPaths));
}
/**
 * Asserts that a list of FileEntry instances point to the expected paths.
 *
 * @param {!Array<string>} expectedPaths
 * @param {!Array<!FileEntry>} fileEntries
 */
Asserts that a list of FileEntry instances point to the expected paths.
@param {!Array} expectedPaths
@param {!Array} fileEntries
Asserts that a list of FileEntry instances point to the expected paths . @param { !Array } expectedPaths @param { !Array } fileEntries
function assertFileEntryPathsEqual(expectedPaths, fileEntries) {
  assertEquals(expectedPaths.length, fileEntries.length);
  var entryToPath = function(entry) {
    assertTrue(entry.isFile);
    return entry.fullPath;
  };
  var actualPaths = fileEntries.map(entryToPath);
  actualPaths.sort();
  expectedPaths = expectedPaths.slice();
  expectedPaths.sort();
  assertEquals(
      JSON.stringify(expectedPaths),
      JSON.stringify(actualPaths));
}
function assertFileEntryPathsEqual ( expectedPaths , fileEntries ) { assertEquals ( expectedPaths . length , fileEntries . length ) ; var entryToPath = function ( entry ) { assertTrue ( entry . isFile ) ; return entry . fullPath ; } ; var actualPaths = fileEntries . map ( entryToPath ) ; actualPaths . sort ( ) ; expectedPaths = expectedPaths . slice ( ) ; expectedPaths . sort ( ) ; assertEquals ( JSON . stringify ( expectedPaths ) , JSON . stringify ( actualPaths ) ) ; }
Asserts that a list of FileEntry instances point to the expected paths.
Asserts that a list of FileEntry instances point to the expected paths .