climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1500907 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/WorldMapCtrlTest.js
Date Mon, 08 Jul 2013 19:46:54 GMT
Author: joyce
Date: Mon Jul  8 19:46:54 2013
New Revision: 1500907

URL: http://svn.apache.org/r1500907
Log:
CLIMATE-175 - Fix WorldMapCtrl test after map zoom addition.

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

Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/WorldMapCtrlTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/WorldMapCtrlTest.js?rev=1500907&r1=1500906&r2=1500907&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/WorldMapCtrlTest.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/controllers/WorldMapCtrlTest.js Mon
Jul  8 19:46:54 2013
@@ -35,7 +35,8 @@ describe('OCW Controllers', function() {
 				// Don't try to add the user defined region since we don't have one
 				scope.regionParams.areValid = false;
 				// We need to fake the map object. The only thing we care about is faking the "addLayer"
function
-				$rootScope.map = {addLayer: function(){}};
+				// and the "fitBounds" functions which our map controllers makes use of.
+				$rootScope.map = {addLayer: function(){}, fitBounds: function(){}};
 				$rootScope.fillColors = ['#ff0000'];
 
 				expect("rectangleGroup" in $rootScope).toBe(false);



Mime
View raw message