diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2007-01-19 01:14:02 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2007-01-19 01:14:02 +0000 |
commit | 612c49cc74998f1fcff39b1cfde6a01f3c18c069 (patch) | |
tree | 1829be49189e6858afee76509845ad31f0ee6b74 /menu/tests/tests/Category | |
parent | 7d249792235d0f3b69f833f89bef545a367f0b6b (diff) | |
download | xdg-specs-612c49cc74998f1fcff39b1cfde6a01f3c18c069.tar.xz |
Added support for LSB's TET test framework Renamed tests to more
* Added support for LSB's TET test framework
* Renamed tests to more meaningful names (see ChangeLog for details)
Diffstat (limited to 'menu/tests/tests/Category')
-rw-r--r-- | menu/tests/tests/Category/result | 3 | ||||
-rw-r--r-- | menu/tests/tests/Category/test | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/menu/tests/tests/Category/result b/menu/tests/tests/Category/result new file mode 100644 index 0000000..73b00c9 --- /dev/null +++ b/menu/tests/tests/Category/result @@ -0,0 +1,3 @@ +Editors/ KEdit.desktop ${XDG_DATA_DIR}/applications/KEdit.desktop +Editors/ kate.desktop ${XDG_DATA_DIR}/applications/kate.desktop +Editors/ kwrite.desktop ${XDG_DATA_DIR}/applications/kwrite.desktop diff --git a/menu/tests/tests/Category/test b/menu/tests/tests/Category/test new file mode 100644 index 0000000..3ee0777 --- /dev/null +++ b/menu/tests/tests/Category/test @@ -0,0 +1,29 @@ +TEST_PURPOSE="<Category> tag" + +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/> + + <Menu> + <Name>Editors</Name> + <Include> + <Category>TextEditor</Category> + <!-- note it's lowercase, this is intentional to verify + it's a case sensitive implementation --> + <Category>application</Category> + </Include> + </Menu> +</Menu> +EOF + +# Install .desktop files, freecell is daft but intentional to verify category support is case sensitive +installData ${XDG_DATA_DIR}/applications kwrite.desktop KEdit.desktop kate.desktop freecell.desktop +} |