* 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:
suke 2010-04-16 14:55:42 +00:00
Родитель fd9c3fef0b
Коммит de1324fb7f
2 изменённых файлов: 19 добавлений и 11 удалений

Просмотреть файл

@ -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,19 +60,21 @@ if defined?(WIN32OLE)
end
def test_invokeverb
links = find_link(@dummy_path)
assert(0, links.size)
# 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)
# Now create shortcut to @dummy_path
arg = WIN32OLE_VARIANT.new(@shortcut)
@fi2.InvokeVerb(arg)
# Now search shortcut to @dummy_path
links = find_link(@dummy_path)
assert(1, links.size)
@lpath = links[0].path
# Now search shortcut to @dummy_path
links = find_link(@dummy_path)
assert(1, links.size)
@lpath = links[0].path
end
end
def teardown