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/07/09 23:21:14 UTC
svn commit: r1501565 -
/incubator/climate/trunk/rcmet/src/main/ui/test/unit/directives/PreviewMapTest.js
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);