summaryrefslogtreecommitdiff
path: root/test/win32ole/test_folderitem2_invokeverb.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 12:40:24 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-13 12:40:24 +0000
commit31c764ff7fd0d0dbd5700d0850a2d6e8a3951f7e (patch)
tree0f7b87c1d495cc47f6aaadc0128d058230466d40 /test/win32ole/test_folderitem2_invokeverb.rb
parente0a6ff2aa6f4994b5cdebd98a6f588c0c44cd927 (diff)
* ext/win32ole/win32ole.c (foletype_s_ole_classes,
foletype_s_typelibs): refactoring. * test/win32ole/test_win32ole_type.rb: add some test. * ext/win32ole/win32ole.c (Init_win32ole): change method name WIN32OLE_TYPELIB.ole_types from WIN32OLE_TYPELIB.ole_classes. * test/win32ole/test_win32ole_typelib.rb: ditto. * test/win32ole/test_folderitem2_invokeverb.rb: check create shortcut string more strictly (This test is invoked in Japanese Windows environment). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_folderitem2_invokeverb.rb')
-rw-r--r--test/win32ole/test_folderitem2_invokeverb.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/win32ole/test_folderitem2_invokeverb.rb b/test/win32ole/test_folderitem2_invokeverb.rb
index a4e90fb66b5..853b05bed21 100644
--- a/test/win32ole/test_folderitem2_invokeverb.rb
+++ b/test/win32ole/test_folderitem2_invokeverb.rb
@@ -29,7 +29,7 @@ if defined?(WIN32OLE)
@shortcut = nil
#
- # Search the 'Create Shortcut (&S)' string.
+ # Search the 'Create Shortcut (&S)' string in Japanese.
# Yes, I know the string in the Windows 2000 Japanese Edition.
# But I do not know about the string in any other Windows.
#
@@ -38,7 +38,8 @@ if defined?(WIN32OLE)
@shortcut = verbs.collect{|verb|
verb.name
}.find {|name|
- /.*\(\&S\)$/ =~ name
+ name.unpack("C*") == [131, 86, 131, 135, 129, 91, 131, 103, 131, 74, 131, 98, 131, 103, 130, 204, 141, 236, 144, 172, 40, 38, 83, 41]
+ # /.*\(\&S\)$/ =~ name
}
end