Bug 171979 [Automation]The result of total.mode() is wrong
1. use the attached report 2. preview Expected Result: Total.mode(row["Decimal"]) returns "0.000000000009". Total.mode(row["date"]) returns "1/12/2003 08:17:17 AM", "1/12/2005 09:18:16 AM" and "1/12/2007 11:20:16 AM". Actual Result: Total.mode(row["Decimal"]) returns "0". Total.mode(row["date"]) returns nothing.
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/TotalTest.java
assertEquals(IAggregation.RUNNING_AGGR, ag.getType());
        assertEquals(2, ag.getParameterDefn().length);
        assertTrue(ag.getParameterDefn()[0]);
        assertFalse(ag.getParameterDefn()[1]);
        
        ac.start();
        	ac.onRow(new Double[]{new Double(6), new Double(5)});
        ac.finish();
        ac.start();
    	ac.onRow(new Double[]{new Double(6), new Double(5)});
    	ac.finish();
 
        
       	assertEquals(new Boolean(true), ac.getValue());
      	     
        ag = BuiltInAggregationFactory.getInstance().getAggregation("isTopNPercent");
        ac = ag.newAccumulator();
        assertEquals(BuiltInAggregationFactory.TOTAL_TOP_PERCENT_FUNC, ag.getName());
        assertEquals(IAggregation.RUNNING_AGGR, ag.getType());
        assertEquals(2, ag.getParameterDefn().length);
        assertTrue(ag.getParameterDefn()[0]);
        assertFalse(ag.getParameterDefn()[1]);
        
        ac.start();
        for(int i=0; i<doubleArray1.length; i++)
        {
            ac.onRow(new Double[]{new Double(doubleArray1[i]), new Double(33)});
        }
        ac.finish();
        ac.start();