From a512176b4bdbf0f0471a9b9089f4a936c14e2732 Mon Sep 17 00:00:00 2001 From: Duong Do Minh Chau Date: Thu, 12 Nov 2020 16:38:44 +0700 Subject: Add options to hide some context menu entries This commit add options to hide the following context menu entries: - Add to Places - Copy Location - Duplicate Here - Open in New Tab and Open in New Tabs - Open in New Window - Sort By - View Mode The Services settings page is renamed to Context Menu ShowCopyMoveMenu option is moved from GeneralSettings to ContextMenuSettings BUG: 314594 --- src/settings/contextmenu/test/test_helper.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/settings/contextmenu/test/test_helper.rb (limited to 'src/settings/contextmenu/test/test_helper.rb') diff --git a/src/settings/contextmenu/test/test_helper.rb b/src/settings/contextmenu/test/test_helper.rb new file mode 100644 index 000000000..b4e4dded2 --- /dev/null +++ b/src/settings/contextmenu/test/test_helper.rb @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2019 Harald Sitter +# +# SPDX-License-Identifier: GPL-2.0-or-later + +$LOAD_PATH.unshift(File.absolute_path('../', __dir__)) # ../ + +def __test_method_name__ + return @method_name if defined?(:@method_name) + index = 0 + caller = '' + until caller.start_with?('test_') + caller = caller_locations(index, 1)[0].label + index += 1 + end + caller +end + +require 'test/unit' -- cgit v1.3