diff --git a/platform/features/layout/test/FixedControllerSpec.js b/platform/features/layout/test/FixedControllerSpec.js index f2c4ed9494..8849fb00e6 100644 --- a/platform/features/layout/test/FixedControllerSpec.js +++ b/platform/features/layout/test/FixedControllerSpec.js @@ -157,9 +157,9 @@ define( }; testValues = { a: 10, b: 42, c: 31.42 }; testConfiguration = { elements: [ - { type: "fixed.telemetry", id: 'a', x: 1, y: 1 }, - { type: "fixed.telemetry", id: 'b', x: 1, y: 1 }, - { type: "fixed.telemetry", id: 'c', x: 1, y: 1 } + { type: "fixed.telemetry", id: 'a', x: 1, y: 1, useGrid: true}, + { type: "fixed.telemetry", id: 'b', x: 1, y: 1, useGrid: true}, + { type: "fixed.telemetry", id: 'c', x: 1, y: 1, useGrid: true} ]}; mockChildren = testModel.composition.map(makeMockDomainObject); diff --git a/platform/features/layout/test/FixedDragHandleSpec.js b/platform/features/layout/test/FixedDragHandleSpec.js index 930df524cc..fde2dda2e8 100644 --- a/platform/features/layout/test/FixedDragHandleSpec.js +++ b/platform/features/layout/test/FixedDragHandleSpec.js @@ -35,13 +35,14 @@ define( beforeEach(function () { mockElementHandle = jasmine.createSpyObj( 'elementHandle', - ['x', 'y'] + ['x', 'y','getGridSize'] ); mockUpdate = jasmine.createSpy('update'); mockCommit = jasmine.createSpy('commit'); mockElementHandle.x.andReturn(6); mockElementHandle.y.andReturn(8); + mockElementHandle.getGridSize.andReturn(TEST_GRID_SIZE); handle = new FixedDragHandle( mockElementHandle, diff --git a/platform/features/layout/test/FixedProxySpec.js b/platform/features/layout/test/FixedProxySpec.js index 9d70191b50..a91607208f 100644 --- a/platform/features/layout/test/FixedProxySpec.js +++ b/platform/features/layout/test/FixedProxySpec.js @@ -61,7 +61,8 @@ define( x: 0, y: 0, width: 1, - height: 1 + height: 1, + useGrid: true }); });