mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-26 15:40:46 +00:00
test(modeling/behavior): reorganize label positioning behavior specs
This commit is contained in:
parent
8df95ed754
commit
2935b23ee4
@ -10,19 +10,14 @@ import {
|
||||
import modelingModule from 'lib/features/modeling';
|
||||
import coreModule from 'lib/core';
|
||||
|
||||
|
||||
describe('modeling/behavior - AdaptiveLabelPositioningBehavior', function() {
|
||||
|
||||
var diagramXML = require('./AdaptiveLabelPositioningBehavior.bpmn');
|
||||
|
||||
beforeEach(bootstrapModeler(diagramXML, {
|
||||
modules: [
|
||||
var testModules = [
|
||||
modelingModule,
|
||||
coreModule
|
||||
]
|
||||
}));
|
||||
];
|
||||
|
||||
|
||||
describe('modeling/behavior - AdaptiveLabelPositioningBehavior', function() {
|
||||
|
||||
function expectLabelOrientation(element, expectedOrientation) {
|
||||
|
||||
var label = element.label;
|
||||
@ -38,6 +33,15 @@ describe('modeling/behavior - AdaptiveLabelPositioningBehavior', function() {
|
||||
}
|
||||
|
||||
|
||||
describe('basics', function() {
|
||||
|
||||
var diagramXML = require('./AdaptiveLabelPositioningBehavior.basics.bpmn');
|
||||
|
||||
beforeEach(bootstrapModeler(diagramXML, {
|
||||
modules: testModules
|
||||
}));
|
||||
|
||||
|
||||
describe('on connect', function() {
|
||||
|
||||
it('should move label from LEFT to TOP', inject(function(elementRegistry, modeling) {
|
||||
@ -275,6 +279,9 @@ describe('modeling/behavior - AdaptiveLabelPositioningBehavior', function() {
|
||||
expectLabelOrientation(element, 'top');
|
||||
}
|
||||
));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user