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

Unified Diff: third_party/xdg-utils/tests/xdg-desktop-menu/t.03-menu_system_forceupdate

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-menu/t.03-menu_system_forceupdate
===================================================================
--- third_party/xdg-utils/tests/xdg-desktop-menu/t.03-menu_system_forceupdate (revision 0)
+++ third_party/xdg-utils/tests/xdg-desktop-menu/t.03-menu_system_forceupdate (revision 0)
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+## Include utility functions.
+. "$XDG_TEST_DIR/include/testassertions.sh"
+. "$XDG_TEST_DIR/include/testcontrol.sh"
+
+## test function
+test_menu_system_forceupdate() {
+test_start "$FUNCNAME: verify forceupdate doesn't error for --mode system"
+
+test_init
+
+set_no_display
+require_root
+
+test_procedure
+
+assert_exit 0 xdg-desktop-menu forceupdate --mode system
+assert_nostdout
+assert_nostderr
+
+test_result
+}
+
+run_test test_menu_system_forceupdate
Property changes on: third_party/xdg-utils/tests/xdg-desktop-menu/t.03-menu_system_forceupdate
___________________________________________________________________
Name: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698