mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
WIN32OLE_TYPELIB.new accepts OLE files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b7c8b3488
commit
11974f3b6d
3 changed files with 60 additions and 18 deletions
|
|
@ -33,6 +33,10 @@ if defined?(WIN32OLE_TYPELIB)
|
|||
assert_instance_of(WIN32OLE_TYPELIB, tlib_by_guid)
|
||||
assert_equal("Microsoft Shell Controls And Automation" , tlib_by_guid.name)
|
||||
|
||||
path = tlib.path
|
||||
tlib_by_path = WIN32OLE_TYPELIB.new(path)
|
||||
assert_equal("Microsoft Shell Controls And Automation" , tlib_by_path.name)
|
||||
|
||||
assert_raise(WIN32OLERuntimeError) {
|
||||
WIN32OLE_TYPELIB.new("Non Exist Type Library")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue