summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2006-09-19 04:33:46 +0000
committerWaldo Bastian <waldo.bastian@intel.com>2006-09-19 04:33:46 +0000
commit3684e5144f5bb1cd8df63902f5cc11041c8587ce (patch)
tree3c121de6d8d4f673a5ac85dba0f7fff3248c03fd /tests
parentf3b472ee3a0817ce932496e238fa4d009b4c6196 (diff)
No support for SVG icons
Diffstat (limited to 'tests')
-rwxr-xr-xtests/xdg-utils-usecases/t.12-svg_icon_render65
-rwxr-xr-xtests/xdg-utils-usecases/t.13-desktop_file_svg_icon71
2 files changed, 0 insertions, 136 deletions
diff --git a/tests/xdg-utils-usecases/t.12-svg_icon_render b/tests/xdg-utils-usecases/t.12-svg_icon_render
deleted file mode 100755
index d538f0e..0000000
--- a/tests/xdg-utils-usecases/t.12-svg_icon_render
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/bash
-
-. "$XDG_TEST_DIR/include/testassertions.sh"
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-test_svg_icon_render() {
-
-test_start "$FUNCNAME: ensure that SVG icons are rendered"
-
-
-test_init
-
-# get icon file
-use_file "$XDG_TEST_DIR/icons/red-SVG.svg" ICON_FILE
-
-# get & edit desktop file
-use_file "$XDG_TEST_DIR/xdg-utils-usecases/data/icon_test.desktop" DESKTOP_FILE
-edit_file "$DESKTOP_FILE" 'red' ICON_NAME
-
-TEST_DIR="$XDG_TEST_TMPDIR"
-#assert_exit 0 mkdir -p "$TEST_DIR"
-#assert_exit 0 cp "$DESKTOP_FILE" "$TEST_DIR/"
-
-test_procedure
-
-# install icons of all sizes
-assert_exit 0 xdg-icon-resource install "$ICON_FILE" "$ICON_NAME"
-assert_nostdout
-assert_nostderr
-
-# Wait a little for caches to update
-sleep 1
-
-# open directory with test file
-if [ `whoami` != 'root' ] ; then
- assert_exit 0 xdg-open "$TEST_DIR"
- assert_nostdout
- assert_nostderr
- assert_interactive "Did the file browser open the '$TEST_DIR' directory?" y
-else
- assert_interactive "Please open '$TEST_DIR' in the file browser."
-fi
-
-# ask user to cycle through sizes & ensure correct icons are displayed.
-assert_interactive "Is a file named 'Icon Test' present in the directory?" y
-assert_interactive "Does the icon consist of the red text 'SVG'?\n\t(You may need to select something like 'View->As Icons')" y
-# assert_interactive "Does the text change size appropriately when the display size is changed?" y
-
-## cleanup
-if [ `whoami` != 'root' ] ; then
- assert_interactive "Please close any windows opened by this test." C
-else
- assert_interactive "You may close the file browser window." C
-fi
-
-# remove icons
-assert_exit 0 xdg-icon-resource uninstall "$ICON_NAME"
-assert_nostdout
-assert_nostderr
-
-
-test_result
-}
-
-run_test test_svg_icon_render
diff --git a/tests/xdg-utils-usecases/t.13-desktop_file_svg_icon b/tests/xdg-utils-usecases/t.13-desktop_file_svg_icon
deleted file mode 100755
index 90445af..0000000
--- a/tests/xdg-utils-usecases/t.13-desktop_file_svg_icon
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-. "$XDG_TEST_DIR/include/testassertions.sh"
-. "$XDG_TEST_DIR/include/testcontrol.sh"
-
-test_desktop_file_svg_icon() {
-
-test_start "$FUNCNAME: ensure that associations with filetypes is correct."
-
-ICON_SIZES="16 22 24 32 48 64 128"
-
-test_init
-
-# get icon files
-for i in $ICON_SIZES; do
- use_file "$XDG_TEST_DIR/icons/red-$i.png" TMP
-done
-use_file "$XDG_TEST_DIR/icons/red-SVG.svg" TMP
-
-# get & edit desktop file
-use_file "$XDG_TEST_DIR/xdg-utils-usecases/data/icon_test.desktop" DESKTOP_FILE
-edit_file "$DESKTOP_FILE" 'red' ICON_NAME
-TEST_DIR="$XDG_TEST_TMPDIR/show"
-assert_exit 0 mkdir -p "$TEST_DIR"
-assert_exit 0 cp "$DESKTOP_FILE" "$TEST_DIR/IconTest.desktop"
-
-test_procedure
-
-# install icons of all sizes
-for i in $ICON_SIZES; do
- assert_exit 0 xdg-icon-resource install --size "$i" "xdgtestdata-$XDG_TEST_ID-red-$i.png" "$ICON_NAME"
- assert_nostdout
- assert_nostderr
-done
-assert_exit 0 xdg-icon-resource install "xdgtestdata-$XDG_TEST_ID-red-SVG.svg" "$ICON_NAME"
-
-# Wait a little for caches to update
-sleep 1
-
-# open directory with test file
-if [ `whoami` != 'root' ] ; then
- assert_exit 0 xdg-open "$TEST_DIR"
- assert_nostdout
- assert_nostderr
- assert_interactive "Did the file browser open the '$TEST_DIR' directory?" y
-else
- assert_interactive "Please open '$TEST_DIR' in the file browser."
-fi
-
-# ask user to cycle through sizes & ensure correct icons are displayed.
-assert_interactive "Is a file named either 'Icon Test' or 'IconTest.desktop' present in the directory?" y
-assert_interactive "Does the icon consist of either a red number or the red text SVG?\n\t(You may need to select something like 'View->As Icons')" y
-# assert_interactive "Does the number change appropriately when you increase or decrease the view size?" y
-
-## cleanup
-if [ `whoami` != 'root' ] ; then
- assert_interactive "Please close any windows opened by this test." C
-else
- assert_interactive "You may close the file browser window." C
-fi
-
-# remove icons
-for i in $ICON_SIZES; do
- xdg-icon-resource uninstall --size "$i" "$ICON_NAME" > /dev/null 2> /dev/null
-done
-xdg-icon-resource uninstall "$ICON_NAME" > /dev/null 2> /dev/null
-
-test_result
-}
-
-run_test test_desktop_file_svg_icon