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:06 UTC
svn commit: r1496045 -
/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Author: joyce
Date: Mon Jun 24 13:31:05 2013
New Revision: 1496045
URL: http://svn.apache.org/r1496045
Log:
CLIMATE-148 progress - Add removeDataset 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=1496045&r1=1496044&r2=1496045&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:05 2013
@@ -63,6 +63,17 @@ describe('OCW Services', function() {
expect(selectedDatasetInformation.getDatasets()[0].regrid).toBe(false);
});
});
+
+ it('should provide the removeDataset function', function() {
+ inject(function(selectedDatasetInformation) {
+ selectedDatasetInformation.addDataset(1);
+ selectedDatasetInformation.addDataset(2);
+
+ expect(selectedDatasetInformation.getDatasets()[0]).toEqual(1);
+ selectedDatasetInformation.removeDataset(0);
+ expect(selectedDatasetInformation.getDatasets()[0]).toEqual(2);
+ });
+ });
});
});