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:01 UTC

svn commit: r1496043 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js

Author: joyce
Date: Mon Jun 24 13:31:01 2013
New Revision: 1496043

URL: http://svn.apache.org/r1496043
Log:
CLIMATE-148 progress - Add shouldDisplay 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=1496043&r1=1496042&r2=1496043&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:01 2013
@@ -49,6 +49,13 @@ describe('OCW Services', function() {
 				expect(selectedDatasetInformation.getDatasetCount()).toEqual(1);
 			});
 		});
+
+		it('should set the shouldDisplay attribute when adding a dataset', function() {
+			inject(function(selectedDatasetInformation) {
+				selectedDatasetInformation.addDataset({});
+				expect(selectedDatasetInformation.getDatasets()[0].shouldDisplay).toBe(true);
+			});
+		});
 	});
 });