Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/xdg-utils/tests/xdg-desktop-icon/t.02-plain_file_install

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/xdg-utils/tests/xdg-desktop-icon/t.02-plain_file_install
===================================================================
--- third_party/xdg-utils/tests/xdg-desktop-icon/t.02-plain_file_install (revision 0)
+++ third_party/xdg-utils/tests/xdg-desktop-icon/t.02-plain_file_install (revision 0)
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## Test function
+test_plain_file_install() {
+## Begin the test.
+test_start "$FUNCNAME: verify text file is installed correctly on the desktop"
+
+# Dependencies section
+test_init
+
+INSFILE="xdgtestdata-$XDG_TEST_SHORTID.txt"
+set_no_display
+echo "Some more boring text. $XDG_TEST_ID" > "$INSFILE"
+assert_file "$INSFILE"
+
+DESKTOP="$HOME/Desktop"
+
+# Verify the test icon is not installed already.
+assert_file_not_in_path "$INSFILE" "$DESKTOP"
+
+# Test steps section
+test_procedure
+
+assert_exit 0 xdg-desktop-icon install "$INSFILE"
+assert_nostdout
+assert_nostderr
+
+assert_file_in_path "$INSFILE" "$DESKTOP"
+
+assert_interactive_notroot "Is there an icon on the desktop with name '$INSFILE'?" y
+
+## Cleanup
+xdg-desktop-icon uninstall "$INSFILE"
+
+test_result
+}
+
+run_test test_plain_file_install
Property changes on: third_party/xdg-utils/tests/xdg-desktop-icon/t.02-plain_file_install
___________________________________________________________________
Name: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698