-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved `ActionExecute::StartProcess()` private. Fixed a bad copy paste for `ActionExecute::SetVerb()` and `ActionExecute::GetVerb()`. Updated documentation for verb attribute of <exec> element. Fixed missing closing quotes in logs of ActionExecute::Execute(). Created TestObjectFactory.testParseActionExecute() unit tests to validate parsing. For issue #56.
- Loading branch information
1 parent
d0de816
commit 23e3df9
Showing
8 changed files
with
158 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/test_files/TestObjectFactory.testParseActionExecute.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<root> | ||
<shell> | ||
<menu name="menu00"> | ||
<actions> | ||
<exec path="C:\Windows\System32\calc.exe" /> | ||
</actions> | ||
</menu> | ||
|
||
<menu name="menu01"> | ||
<actions> | ||
<exec path="C:\Windows\notepad.exe" basedir="C:\Program Files\7-Zip" arguments="License.txt" /> | ||
</actions> | ||
</menu> | ||
|
||
<menu name="menu02"> | ||
<actions> | ||
<exec path="C:\Windows\notepad.exe" arguments="C:\Windows\System32\drivers\etc\hosts" verb="runas" /> | ||
</actions> | ||
</menu> | ||
|
||
<menu name="menu03"> | ||
<actions> | ||
<!-- missing path attribute --> | ||
<exec arguments="C:\Windows\System32\drivers\etc\hosts" verb="runas" /> | ||
</actions> | ||
</menu> | ||
|
||
</shell> | ||
</root> |