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

Side by Side Diff: third_party/xdg-utils/tests/xdg-mime/t.12-user_install_missing_file

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 . "$XDG_TEST_DIR/include/testassertions.sh"
4 . "$XDG_TEST_DIR/include/testcontrol.sh"
5
6 test_user_install_missing_file() {
7 INPUT_FILE='non-existant-file.xml'
8
9 test_start "$FUNCNAME: install mime type as user with missing file $INPUT_FILE"
10 test_purpose "Verify that the correct error is generated when the mime file is m issing."
11
12 ## Check dependencies
13 test_init
14
15 require_notroot
16 assert_nofile "$INPUT_FILE"
17
18 ## Main test
19 test_procedure
20
21 assert_exit 2 xdg-mime install --mode user "$INPUT_FILE"
22 assert_stderr
23 assert_nostdout
24
25 test_result
26 }
27
28 run_test test_user_install_missing_file
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698