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/18 05:17:02 UTC

svn commit: r1494001 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js

Author: joyce
Date: Tue Jun 18 03:17:02 2013
New Revision: 1494001

URL: http://svn.apache.org/r1494001
Log:
CLIMATE-116 progress - Add misc. variable init. test

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js?rev=1494001&r1=1494000&r2=1494001&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/ParameterSelectCtrl.js Tue Jun 18 03:17:02 2013
@@ -46,5 +46,17 @@ describe('OCW Controllers', function() {
 				expect(Object.keys(scope.displayParams).length).toBe(7);
 			});
 		});
+
+		it('should initialize misc. values properly', function() {
+			inject(function($rootScope, $controller) {
+				var scope = $rootScope.$new();
+				var ctrl = $controller("ParameterSelectCtrl", {$scope: scope});
+				
+				expect(scope.runningEval).toBe(false);
+				expect(scope.areInUserRegridState).toBe(false);
+				expect(scope.latSliderVal).toBe(0);
+				expect(scope.lonSliderVal).toBe(0);
+			});
+		});
 	});
 });