Updater debug utility
This commit is contained in:
parent
e7e9021e3f
commit
759ced3417
14 changed files with 409 additions and 15 deletions
|
@ -161,6 +161,10 @@
|
|||
{
|
||||
"label": "Toggle Developer Tools",
|
||||
"role": "toggleDevTools"
|
||||
},
|
||||
{
|
||||
"label": "Force Update",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -154,6 +154,10 @@
|
|||
{
|
||||
"label": "Toggle Developer Tools",
|
||||
"role": "toggleDevTools"
|
||||
},
|
||||
{
|
||||
"label": "Force Update",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
164
test/app/fixtures/menu-windows-setup.json
Normal file
164
test/app/fixtures/menu-windows-setup.json
Normal file
|
@ -0,0 +1,164 @@
|
|||
[
|
||||
{
|
||||
"label": "&File",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Set Up as New Device",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Create/upload sticker pack",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"accelerator": "CommandOrControl+,",
|
||||
"label": "Preferences…",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Quit Signal",
|
||||
"role": "quit"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Edit",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Undo",
|
||||
"role": "undo"
|
||||
},
|
||||
{
|
||||
"label": "Redo",
|
||||
"role": "redo"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Cut",
|
||||
"role": "cut"
|
||||
},
|
||||
{
|
||||
"label": "Copy",
|
||||
"role": "copy"
|
||||
},
|
||||
{
|
||||
"label": "Paste",
|
||||
"role": "paste"
|
||||
},
|
||||
{
|
||||
"label": "Paste and Match Style",
|
||||
"role": "pasteAndMatchStyle"
|
||||
},
|
||||
{
|
||||
"label": "Delete",
|
||||
"role": "delete"
|
||||
},
|
||||
{
|
||||
"label": "Select All",
|
||||
"role": "selectAll"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&View",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Actual Size",
|
||||
"role": "resetZoom"
|
||||
},
|
||||
{
|
||||
"accelerator": "Control+=",
|
||||
"label": "Zoom In",
|
||||
"role": "zoomIn"
|
||||
},
|
||||
{
|
||||
"label": "Zoom Out",
|
||||
"role": "zoomOut"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Toggle Full Screen",
|
||||
"role": "togglefullscreen"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Debug Log",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Toggle Developer Tools",
|
||||
"role": "toggleDevTools"
|
||||
},
|
||||
{
|
||||
"label": "Force Update",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Window",
|
||||
"role": "window",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Minimize",
|
||||
"role": "minimize"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Help",
|
||||
"role": "help",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Show Keyboard Shortcuts",
|
||||
"accelerator": "CmdOrCtrl+/",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Contact Us",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Release Notes",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Forums",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Support Page",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Join the Beta",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "About Signal Desktop",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
157
test/app/fixtures/menu-windows.json
Normal file
157
test/app/fixtures/menu-windows.json
Normal file
|
@ -0,0 +1,157 @@
|
|||
[
|
||||
{
|
||||
"label": "&File",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Create/upload sticker pack",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"accelerator": "CommandOrControl+,",
|
||||
"label": "Preferences…",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Quit Signal",
|
||||
"role": "quit"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Edit",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Undo",
|
||||
"role": "undo"
|
||||
},
|
||||
{
|
||||
"label": "Redo",
|
||||
"role": "redo"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Cut",
|
||||
"role": "cut"
|
||||
},
|
||||
{
|
||||
"label": "Copy",
|
||||
"role": "copy"
|
||||
},
|
||||
{
|
||||
"label": "Paste",
|
||||
"role": "paste"
|
||||
},
|
||||
{
|
||||
"label": "Paste and Match Style",
|
||||
"role": "pasteAndMatchStyle"
|
||||
},
|
||||
{
|
||||
"label": "Delete",
|
||||
"role": "delete"
|
||||
},
|
||||
{
|
||||
"label": "Select All",
|
||||
"role": "selectAll"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&View",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Actual Size",
|
||||
"role": "resetZoom"
|
||||
},
|
||||
{
|
||||
"accelerator": "Control+=",
|
||||
"label": "Zoom In",
|
||||
"role": "zoomIn"
|
||||
},
|
||||
{
|
||||
"label": "Zoom Out",
|
||||
"role": "zoomOut"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Toggle Full Screen",
|
||||
"role": "togglefullscreen"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Debug Log",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Toggle Developer Tools",
|
||||
"role": "toggleDevTools"
|
||||
},
|
||||
{
|
||||
"label": "Force Update",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Window",
|
||||
"role": "window",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Minimize",
|
||||
"role": "minimize"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "&Help",
|
||||
"role": "help",
|
||||
"submenu": [
|
||||
{
|
||||
"label": "Show Keyboard Shortcuts",
|
||||
"accelerator": "CmdOrCtrl+/",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "Contact Us",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Release Notes",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Forums",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Go to Support Page",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"label": "Join the Beta",
|
||||
"click": null
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"label": "About Signal Desktop",
|
||||
"click": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
|
@ -19,16 +19,16 @@ const PLATFORMS = [
|
|||
label: 'Windows',
|
||||
platform: 'win32',
|
||||
fixtures: {
|
||||
default: './fixtures/menu-windows-linux',
|
||||
setup: './fixtures/menu-windows-linux-setup',
|
||||
default: './fixtures/menu-windows',
|
||||
setup: './fixtures/menu-windows-setup',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Linux',
|
||||
platform: 'linux',
|
||||
fixtures: {
|
||||
default: './fixtures/menu-windows-linux',
|
||||
setup: './fixtures/menu-windows-linux-setup',
|
||||
default: './fixtures/menu-linux',
|
||||
setup: './fixtures/menu-linux-setup',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
@ -60,6 +60,7 @@ describe('SignalMenu', () => {
|
|||
includeSetup,
|
||||
setupAsNewDevice: null,
|
||||
setupAsStandalone: null,
|
||||
forceUpdate: null,
|
||||
showAbout: null,
|
||||
showDebugLog: null,
|
||||
showKeyboardShortcuts: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue