function testContainerItem() {
  assertEquals(container.containerItems.length, NUMBER_CONTAINER_ITEMS);
  // Test if after deletion each gap was correctly closed again.
  var containedItems = [];
  goog.array.forEach(container.containerItems, function(item) {
    containedItems.push(item);
  });
  for (var i = 0; i < NUMBER_CONTAINER_ITEMS; i++)
    container.deleteItem(containedItems[i]);
  assertEquals(container.containerItems.length, 0);
}
/**
 * Tests whether containers are storing items correctly.
 */
Tests whether containers are storing items correctly.
Tests whether containers are storing items correctly .
function testContainerItem() {
  assertEquals(container.containerItems.length, NUMBER_CONTAINER_ITEMS);
  var containedItems = [];
  goog.array.forEach(container.containerItems, function(item) {
    containedItems.push(item);
  });
  for (var i = 0; i < NUMBER_CONTAINER_ITEMS; i++)
    container.deleteItem(containedItems[i]);
  assertEquals(container.containerItems.length, 0);
}
function testContainerItem ( ) { assertEquals ( container . containerItems . length , NUMBER_CONTAINER_ITEMS ) ; var containedItems = [ ] ; goog . array . forEach ( container . containerItems , function ( item ) { containedItems . push ( item ) ; } ) ; for ( var i = 0 ; i < NUMBER_CONTAINER_ITEMS ; i ++ ) container . deleteItem ( containedItems [ i ] ) ; assertEquals ( container . containerItems . length , 0 ) ; }
Tests whether containers are storing items correctly.
Tests whether containers are storing items correctly .
// Test if after deletion each gap was correctly closed again.