summaryrefslogtreecommitdiffstats
path: root/menu/tests/tests/Move-submenu/test
blob: 27519830602051db0855dd277f8b97561e4c28c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
TEST_PURPOSE="Move into a new Submenu"

test_code() {
	# Generate applications.menu
	mkdir -p ${XDG_CONFIG_DIR}/menus
	./expand > ${XDG_CONFIG_DIR}/menus/applications.menu <<EOF
 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
	<Name>KDE</Name>
	<!-- Search the default locations -->
	<DefaultAppDirs/>
	<DefaultDirectoryDirs/>

	<Menu>
		<Name>Development</Name>
		<Include>
			<Filename>gideon-legacy.desktop</Filename>
		</Include>
	</Menu>
	<Move>
		<Old>Development</Old>
		<New>A/B/Development</New>
	</Move>
</Menu>
EOF

	# Install .desktop files

	installData ${XDG_DATA_DIR}/applications gideon-legacy.desktop
}