climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1501565 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js
Date Tue, 09 Jul 2013 21:21:14 GMT
Author: joyce
Date: Tue Jul  9 21:21:14 2013
New Revision: 1501565

URL: http://svn.apache.org/r1501565
Log:
CLIMATE-184 progress - Remove unnecessary $digest calls

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js?rev=1501565&r1=1501564&r2=1501565&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js Tue Jul
 9 21:21:14 2013
@@ -26,7 +26,6 @@ describe('directives', function() {
 		it('should set the proper class', function() {
 			inject(function($compile, $rootScope) {
 				$rootScope.dataset = {latlonVals: {latMax: 90, lonMax: 90, latMin: -90, lonMin: -90},
name: "TRMM"};
-				$rootScope.$digest();
 
 				var element = $compile('<div preview-map="dataset"></div>')($rootScope);
 
@@ -37,7 +36,6 @@ describe('directives', function() {
 		it('should set the id of the template to the name of the dataset', function() {
 			inject(function($compile, $rootScope) {
 				$rootScope.dataset = {latlonVals: {latMax: 90, lonMax: 90, latMin: -90, lonMin: -90},
name: "TRMM"};
-				$rootScope.$digest();
 
 				var element = $compile('<div preview-map="dataset"></div>')($rootScope);
 



Mime
View raw message