close

  
<div><p> /*
 * @fileOverview Tests the index page
 *
 */
acre.require('/test/lib').enable(this);


/*
 * Checks for content on the index page
 */
test('Running app',function() {
  
  var body = acre.test.urlfetch().body;
  var headingIndex = body.indexOf('</p><div id="heading">');
  
  ok( headingIndex !== -1,
      'The attribution HTML should be present in the response body' );
});


/*
 * Checks for the presence of at least one queue
 */
test ("At least one queue", function(){
  var body = acre.test.urlfetch().body;
  
  var evenQueue = body.indexOf('<tr class="even">');
  var oddQueue = body.indexOf('</tr><tr class="odd">');
   
  ok(evenQueue != -1 || oddQueue != -1, 'Found at least one queue');
});

acre.test.report(); </tr></div></div>

Comments

Hide