1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import {
- bootstrapDiagram,
- inject
- } from 'test/TestHelper';
- import touchModule from 'lib/navigation/touch';
- import contextPadModule from 'lib/features/context-pad';
- import paletteModule from 'lib/features/palette';
- describe('navigation/touch', function() {
- describe('bootstrap', function() {
- beforeEach(bootstrapDiagram({ modules: [ touchModule ] }));
- it('should bootstrap', inject(function(canvas) {
- canvas.addShape({
- id: 'test',
- width: 100,
- height: 100,
- x: 100,
- y: 100
- });
- }));
- });
- describe('integration', function() {
- describe('contextPad', function() {
- beforeEach(bootstrapDiagram({ modules: [ contextPadModule, touchModule ] }));
- it('should integrate with contextPad.create', inject(function(canvas, contextPad) {
- canvas.addShape({
- id: 'test',
- width: 100,
- height: 100,
- x: 100,
- y: 100
- });
- }));
- });
- describe('palette', function() {
- beforeEach(bootstrapDiagram({ modules: [ paletteModule, touchModule ] }));
- it('should integrate with palette.create', inject(function(canvas, palette) {
- canvas.addShape({
- id: 'test',
- width: 100,
- height: 100,
- x: 100,
- y: 100
- });
- }));
- });
- });
- });
|