From d6adc51ddd51dded2f739d7ef837c51c2df36fc7 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 12 Dec 2019 23:25:39 +0100 Subject: [PATCH] test(modeling): make move stress test runnable again --- .../features/modeling/LoggingCroppingConnectionDocking.js | 7 +++---- test/spec/features/modeling/MoveStressSpec.js | 7 ++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/spec/features/modeling/LoggingCroppingConnectionDocking.js b/test/spec/features/modeling/LoggingCroppingConnectionDocking.js index 25aa533b..17c29b5b 100644 --- a/test/spec/features/modeling/LoggingCroppingConnectionDocking.js +++ b/test/spec/features/modeling/LoggingCroppingConnectionDocking.js @@ -7,13 +7,12 @@ import { import inherits from 'inherits'; -export default function LoggingCroppingConnectionDocking(elementRegistry, graphicsFactory) { - CroppingConnectionDocking.call(this, elementRegistry, graphicsFactory); +export default function LoggingCroppingConnectionDocking(injector) { + injector.invoke(CroppingConnectionDocking, this); } LoggingCroppingConnectionDocking.$inject = [ - 'elementRegistry', - 'graphicsFactory' + 'injector' ]; inherits(LoggingCroppingConnectionDocking, CroppingConnectionDocking); diff --git a/test/spec/features/modeling/MoveStressSpec.js b/test/spec/features/modeling/MoveStressSpec.js index 874058de..1876b249 100644 --- a/test/spec/features/modeling/MoveStressSpec.js +++ b/test/spec/features/modeling/MoveStressSpec.js @@ -6,6 +6,8 @@ import { import modelingModule from 'lib/features/modeling'; import coreModule from 'lib/core'; +import LoggingCroppingConnectionDocking from './LoggingCroppingConnectionDocking'; + describe.skip('modeling / MoveShape - connection cropping', function() { @@ -16,7 +18,7 @@ describe.skip('modeling / MoveShape - connection cropping', function() { coreModule, modelingModule, { - connectionDocking: [ 'type', require('./LoggingCroppingConnectionDocking') ] + connectionDocking: [ 'type', LoggingCroppingConnectionDocking ] } ] })); @@ -59,8 +61,7 @@ describe.skip('modeling / MoveShape - connection cropping', function() { function tick() { setTimeout(function() { - console.log('ITERATION #', count); - console.log('NO INTERSECT', window.noIntersectCount); + console.log('#%s rate=%s, no-intersections=%s', count, window.noIntersectCount / count, window.noIntersectCount); if (!window.__STOPTEST) { tick();