From 9eb2400a013aa83d4f10c88a113908f493947a40 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Fri, 2 Feb 2018 18:07:32 -0800 Subject: [PATCH] some useful debug actions --- web/app/cad/debugPlugin.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/app/cad/debugPlugin.js b/web/app/cad/debugPlugin.js index d91e97cf..8946021b 100644 --- a/web/app/cad/debugPlugin.js +++ b/web/app/cad/debugPlugin.js @@ -222,7 +222,7 @@ const DebugMenuConfig = { cssIcons: ['bug'], info: 'set of debug actions', actions: ['DebugPrintAllSolids', 'DebugPrintFace', 'DebugFaceId', 'DebugFaceSketch', - 'DebugSetSketcherIntegerPrecision', 'DebugGenerateTest', 'DebugOpenBrepDebugger'] + 'DebugSetSketcherIntegerPrecision', 'DebugOpenLastTest', 'DebugGenerateTest', 'DebugOpenBrepDebugger'] }; const DebugActions = [ @@ -322,6 +322,17 @@ const DebugActions = [ window.location.href = url; } }, + { + id: 'DebugOpenLastTest', + appearance: { + cssIcons: ['gear'], + label: 'open last test', + info: 'open test project with the data generated by the latest executed unit test', + }, + invoke: ({bus, services: {project, storage, sketcher, cadRegistry}}) => { + window.location.href = '/index.html?$$$__test__$$$'; + } + }, { id: 'DebugGenerateTest', appearance: {