Freedesktop test files.

SVN revision: 28215
This commit is contained in:
ningerso 2007-02-03 13:08:15 +00:00 committed by ningerso
parent 9e363d07e9
commit b76cc0e170
6 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,11 @@
SUBDIRS = sub
MAINTAINERCLEANFILES = Makefile.in
testdir = $(pkgdatadir)/test
test_DATA = \
test.ini \
long.ini \
test.desktop \
test.menu \
preferences.menu

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,41 @@
<!DOCTYPE Menu PUBLIC
"-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Preferences</Name>
<Directory>Preferences.directory</Directory>
<AppDir>blah</AppDir>
<AppDir>/var/tmp</AppDir>
<Move>
<Old>Blah</Old
<New>Borp</New>
</Move>
<Menu>
<Name>House</Name>
<Directory>House.directory</Directory>
<Include>
<Category>House</Category>
<Category>Garden</Category>
</Include>
</Menu>
<Menu>
<Name>Mouse</Name>
<Directory>House.directory</Directory>
<Include>
<Category>House</Category>
<Category>Garden</Category>
</Include>
</Menu>
<Menu>
<Name>House</Name>
<Directory>House.directory</Directory>
<Include>
<Category>Cat</Category>
</Include>
</Menu>
</Menu>

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=Sub
Exec=subtest
Categories=Test

View File

@ -0,0 +1,21 @@
# Comments should be ignored (and empty lines)
[contact]
Name=Foo Bar
Name[en_US]=English Foo Bar
Email= foo@bar.com
Email[de_DE] = foo@bar.de
Age = 30
TrueBoolean=true
FalseBoolean=false
InvalidBoolean=invalid
Escaped=line1\nline2\r\nline3\ttabbed \\ with a backslash\sand\sspaces
[AIM]
Username=foobar
# the next line has a single space. it should be skipped as well
[Jabber]
Username=foobar@bar.de

View File

@ -0,0 +1,52 @@
<!DOCTYPE Menu PUBLIC
"-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Applications</Name>
<Directory>Applications.directory</Directory>
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<MergeDir>applications-merged</MergeDir>
<LegacyDir>/usr/share/applnk</LegacyDir>
<DefaultLayout>
<Merge type="menus"/>
<Merge type="files"/>
<Separator/>
<Menuname>More</Menuname>
</DefaultLayout>
<Move>
<Old>Foo</Old>
<New>Bar</New>
<Old>Foo2</Old>
<New>Bar2</New>
</Move>
<Menu>
<Name>Preferences</Name>
<Directory>Preferences.directory</Directory>
<MergeFile>preferences.menu</MergeFile>
</Menu>
<Menu>
<Name>Office</Name>
<Directory>Office.directory</Directory>
<Include>
<Category>Office</Category>
</Include>
<Exclude>
<Filename>foo.desktop</Filename>
<And>
<Not>
<Filename>bar.desktop</Filename>
</Not>
</And>
</Exclude>
</Menu>
</Menu>