climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1496045 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Date Mon, 24 Jun 2013 13:31:06 GMT
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);
+			});
+		});
 	});
 });
 



Mime
View raw message