mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb):
run test only when "Create Shortcut (&S)" menu is found. [ruby-core:29550] [Bug #1602] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fd9c3fef0b
commit
de1324fb7f
2 changed files with 19 additions and 11 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Apr 16 23:42:56 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb):
|
||||
run test only when "Create Shortcut (&S)" menu is found.
|
||||
[ruby-core:29550] [Bug #1602]
|
||||
|
||||
Fri Apr 16 21:52:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* parse.y (string_content, etc): counts of CMDARG_PUSH and POP were
|
||||
|
|
|
@ -60,11 +60,12 @@ if defined?(WIN32OLE)
|
|||
end
|
||||
|
||||
def test_invokeverb
|
||||
# this test should run only when "Create Shortcut (&S)"
|
||||
# is found in context menu,
|
||||
if @shortcut
|
||||
links = find_link(@dummy_path)
|
||||
assert(0, links.size)
|
||||
|
||||
assert(@shortcut)
|
||||
|
||||
# Now create shortcut to @dummy_path
|
||||
arg = WIN32OLE_VARIANT.new(@shortcut)
|
||||
@fi2.InvokeVerb(arg)
|
||||
|
@ -74,6 +75,7 @@ if defined?(WIN32OLE)
|
|||
assert(1, links.size)
|
||||
@lpath = links[0].path
|
||||
end
|
||||
end
|
||||
|
||||
def teardown
|
||||
if @lpath
|
||||
|
|
Loading…
Reference in a new issue