B2G/gecko/testing/mochitest/server.js
/**
 * Creates a generator that iterates over the contents of
 * an nsIFile directory.
 */
Creates a generator that iterates over the contents of
an nsIFile directory.
Creates a generator that iterates over the contents of an nsIFile directory .
function dirIter(dir)
{
  var en = dir.directoryEntries;
  while (en.hasMoreElements()) {
    var file = en.getNext();
    yield file.QueryInterface(Ci.nsILocalFile);
  }
}
function dirIter ( dir ) { var en = dir . directoryEntries ; while ( en . hasMoreElements ( ) ) { var file = en . getNext ( ) ; yield file . QueryInterface ( Ci . nsILocalFile ) ; } }
Creates a generator that iterates over the contents of
 an nsIFile directory.
Creates a generator that iterates over the contents of an nsIFile directory .