Tobias Jeger pushed to branch feature/cmng-psp1 at cms-community / 
hippo-addon-channel-manager


Commits:
5c321787 by Tobias Jeger at 2016-03-09T14:19:33+01:00
CHANNELMGR-481: minor rework after reviewing scaling service unit tests.

- - - - -


1 changed file:

- frontend-ng/src/angularjs/channel/hippoIframe/scaling.service.spec.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/hippoIframe/scaling.service.spec.js
=====================================
--- a/frontend-ng/src/angularjs/channel/hippoIframe/scaling.service.spec.js
+++ b/frontend-ng/src/angularjs/channel/hippoIframe/scaling.service.spec.js
@@ -38,7 +38,7 @@ describe('ScalingService', function () {
     elementsToScale = jasmine.createSpyObj('elementsToScale', ['velocity']);
 
     spyOn(iframeJQueryElement, 'find').and.callFake(function (selector) {
-      return selector === '.cm-scale' ? elementsToScale : $j(selector);
+      return selector === '.cm-scale' ? elementsToScale : 
$j('#test-hippo-iframe ' + selector);
     });
   });
 
@@ -141,7 +141,7 @@ describe('ScalingService', function () {
 
     expect(elementsToScale.velocity).toHaveBeenCalledWith('finish');
     expect(elementsToScale.velocity).toHaveBeenCalledWith('scroll', {
-      container: $j('.channel-iframe-base'),
+      container: baseJQueryElement,
       offset: -25,
       duration: ScalingService.scaleDuration,
       easing: ScalingService.scaleEasing,



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/5c3217877b3bdf8cdd9467a586fd96f5c990fc1b
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to