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>
|
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
|
* parse.y (string_content, etc): counts of CMDARG_PUSH and POP were
|
||||||
|
|
|
@ -60,19 +60,21 @@ if defined?(WIN32OLE)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_invokeverb
|
def test_invokeverb
|
||||||
links = find_link(@dummy_path)
|
# this test should run only when "Create Shortcut (&S)"
|
||||||
assert(0, links.size)
|
# 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)
|
||||||
|
|
||||||
# Now create shortcut to @dummy_path
|
# Now search shortcut to @dummy_path
|
||||||
arg = WIN32OLE_VARIANT.new(@shortcut)
|
links = find_link(@dummy_path)
|
||||||
@fi2.InvokeVerb(arg)
|
assert(1, links.size)
|
||||||
|
@lpath = links[0].path
|
||||||
# Now search shortcut to @dummy_path
|
end
|
||||||
links = find_link(@dummy_path)
|
|
||||||
assert(1, links.size)
|
|
||||||
@lpath = links[0].path
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
|
Loading…
Reference in a new issue