B2G/gecko/testing/mochitest/server.js
/**
 * Produce a normal directory listing.
 */
Produce a normal directory listing.
Produce a normal directory listing .
function regularListing(metadata, response)
{
  var [links, count] = list(metadata.path,
                            metadata.getProperty("directory"),
                            false);
  response.write(
    HTML(
      HEAD(
        TITLE("mochitest index ", metadata.path)
      ),
      BODY(
        BR(),
        A({href: ".."}, "Up a level"),
        UL(linksToListItems(links))
      )
    )
  );
}
function regularListing ( metadata , response ) { var [ links , count ] = list ( metadata . path , metadata . getProperty ( "directory" ) , false ) ; response . write ( HTML ( HEAD ( TITLE ( "mochitest index " , metadata . path ) ) , BODY ( BR ( ) , A ( { href : ".." } , "Up a level" ) , UL ( linksToListItems ( links ) ) ) ) ) ; }
Produce a normal directory listing.
Produce a normal directory listing .