test(modeling): make move stress test runnable again
This commit is contained in:
parent
477217c891
commit
d6adc51ddd
|
@ -7,13 +7,12 @@ import {
|
||||||
import inherits from 'inherits';
|
import inherits from 'inherits';
|
||||||
|
|
||||||
|
|
||||||
export default function LoggingCroppingConnectionDocking(elementRegistry, graphicsFactory) {
|
export default function LoggingCroppingConnectionDocking(injector) {
|
||||||
CroppingConnectionDocking.call(this, elementRegistry, graphicsFactory);
|
injector.invoke(CroppingConnectionDocking, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoggingCroppingConnectionDocking.$inject = [
|
LoggingCroppingConnectionDocking.$inject = [
|
||||||
'elementRegistry',
|
'injector'
|
||||||
'graphicsFactory'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
inherits(LoggingCroppingConnectionDocking, CroppingConnectionDocking);
|
inherits(LoggingCroppingConnectionDocking, CroppingConnectionDocking);
|
||||||
|
|
|
@ -6,6 +6,8 @@ import {
|
||||||
import modelingModule from 'lib/features/modeling';
|
import modelingModule from 'lib/features/modeling';
|
||||||
import coreModule from 'lib/core';
|
import coreModule from 'lib/core';
|
||||||
|
|
||||||
|
import LoggingCroppingConnectionDocking from './LoggingCroppingConnectionDocking';
|
||||||
|
|
||||||
|
|
||||||
describe.skip('modeling / MoveShape - connection cropping', function() {
|
describe.skip('modeling / MoveShape - connection cropping', function() {
|
||||||
|
|
||||||
|
@ -16,7 +18,7 @@ describe.skip('modeling / MoveShape - connection cropping', function() {
|
||||||
coreModule,
|
coreModule,
|
||||||
modelingModule,
|
modelingModule,
|
||||||
{
|
{
|
||||||
connectionDocking: [ 'type', require('./LoggingCroppingConnectionDocking') ]
|
connectionDocking: [ 'type', LoggingCroppingConnectionDocking ]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
|
@ -59,8 +61,7 @@ describe.skip('modeling / MoveShape - connection cropping', function() {
|
||||||
|
|
||||||
function tick() {
|
function tick() {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
console.log('ITERATION #', count);
|
console.log('#%s rate=%s, no-intersections=%s', count, window.noIntersectCount / count, window.noIntersectCount);
|
||||||
console.log('NO INTERSECT', window.noIntersectCount);
|
|
||||||
|
|
||||||
if (!window.__STOPTEST) {
|
if (!window.__STOPTEST) {
|
||||||
tick();
|
tick();
|
||||||
|
|
Loading…
Reference in New Issue