You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/24 15:31:03 UTC
svn commit: r1496044 -
/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Author: joyce
Date: Mon Jun 24 13:31:03 2013
New Revision: 1496044
URL: http://svn.apache.org/r1496044
Log:
CLIMATE-148 progress - Add regrid parameter test
Modified:
incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js?rev=1496044&r1=1496043&r2=1496044&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js Mon Jun 24 13:31:03 2013
@@ -56,6 +56,13 @@ describe('OCW Services', function() {
expect(selectedDatasetInformation.getDatasets()[0].shouldDisplay).toBe(true);
});
});
+
+ it('should set the regrid attribute when adding a dataset', function() {
+ inject(function(selectedDatasetInformation) {
+ selectedDatasetInformation.addDataset({});
+ expect(selectedDatasetInformation.getDatasets()[0].regrid).toBe(false);
+ });
+ });
});
});