summaryrefslogtreecommitdiff
path: root/tests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall')
-rwxr-xr-xtests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall b/tests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall
deleted file mode 100755
index 1392d21..0000000
--- a/tests/xdg-desktop-menu/t.11-simple_menu_item_user_uninstall
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-## Include utility functions.
-. "$XDG_TEST_DIR/include/testassertions.sh"
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-## Test function
-test_simple_menu_item_user_uninstall() {
-## Begin the test.
-test_start "$FUNCNAME: verify a desktop file is uninstalled from the user applications menu"
-test_purpose "A basic desktop file (no category defined) is installed into the menu. It should show up somewhere, but this behavior is not well defined by the spec. This test fails for many systems. This test verifies proper uninstall."
-test_note "Because this behavior is not well defined this test will WARN instead of FAIL"
-
-
-# Dependencies section
-test_init
-
-# Generate .desktop file
-USERPATH="$HOME/.local:$HOME/.gnome:$HOME/.kde"
-
-set_no_display
-
-use_file "$XDG_TEST_DIR/xdg-desktop-menu/data/menu_item_test.desktop" DESKTOP
-edit_file "$DESKTOP" 'xdg-test-menu-item-install.tmp' CREATEFILE
-edit_file "$DESKTOP" 'Test Menu Item Install' ITEM_TEXT "TEST $XDG_TEST_SHORTID"
-
-assert_file "$DESKTOP"
-
-assert_exit 0 xdg-desktop-menu install --mode user "$DESKTOP"
-
-assert_file_in_path "$DESKTOP" "$USERPATH"
-
-
-assert_interactive_notroot "Is an item called '$ITEM_TEXT' somewhere in the menu tree, possibly in a generic location?\n\t(NOTE: If you are using KDE, it may take a few seconds to appear.)" y
-
-# Test steps section
-test_procedure
-
-assert_exit 0 xdg-desktop-menu uninstall --mode user "$DESKTOP"
-assert_nostdout
-assert_nostderr
-
-assert_file_not_in_path "$DESKTOP" "$USERPATH"
-
-assert_interactive_notroot "Is the menu item '$ITEM_TEXT' still present?\n\t(NOTE: If you are using KDE, it may take a few seconds to disappear.)" n
-
-test_failoverride WARN
-test_result
-}
-
-run_test test_simple_menu_item_user_uninstall