some useful debug actions

This commit is contained in:
Val Erastov 2018-02-02 18:07:32 -08:00
parent ccea7762e8
commit 9eb2400a01

View file

@ -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: {