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


Commits:
8647d3b1 by Tobias Jeger at 2016-03-21T09:28:48+01:00
CHANNELMGR-467: fix dragdropservice unit tests.

- - - - -


2 changed files:

- 
frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.iframe.fixture.html
- frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.spec.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.iframe.fixture.html
=====================================
--- 
a/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.iframe.fixture.html
+++ 
b/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.iframe.fixture.html
@@ -16,11 +16,15 @@
 
 <div id="iframeContainerComment1"></div>
 <div id="iframeContainer1">
-  <div id="iframeComponentComment1"></div>
   <div id="iframeComponent1"></div>
-  <div id="iframeComponentComment2"></div>
+  <div id="iframeComponentComment1"></div>
+  <!-- { "HST-End": "true", "uuid": "component1" } -->
   <div id="iframeComponent2"></div>
+  <div id="iframeComponentComment2"></div>
+  <!-- { "HST-End": "true", "uuid": "component2" } -->
 </div>
+<!-- { "HST-End": "true", "uuid": "container1" } -->
 
 <div id="iframeContainerComment2"></div>
 <div id="iframeContainer2"></div>
+<!-- { "HST-End": "true", "uuid": "container2" } -->


=====================================
frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.spec.js
=====================================
--- a/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.spec.js
+++ b/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.spec.js
@@ -130,7 +130,7 @@ describe('DragDropService', () => {
         clientX: 100,
         clientY: 200,
       };
-      const iframeComponentElement1 = component1.getJQueryElement('iframe')[0];
+      const iframeComponentElement1 = component1.getBoxElement()[0];
 
       iframe.offset({
         left: 10,
@@ -160,7 +160,7 @@ describe('DragDropService', () => {
         clientX: 150,
         clientY: 150,
       };
-      const iframeComponentElement1 = component1.getJQueryElement('iframe')[0];
+      const iframeComponentElement1 = component1.getBoxElement()[0];
 
       base.offset({
         left: 10,
@@ -207,7 +207,7 @@ describe('DragDropService', () => {
 
   it('shows the component properties when a component receives a mouseup 
event', (done) => {
     loadIframeFixture(() => {
-      const iframeComponent1 = component1.getJQueryElement('iframe');
+      const iframeComponent1 = component1.getBoxElement();
 
       spyOn(PageStructureService, 'showComponentProperties');
 



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

Reply via email to