diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-10 11:29:49 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-10 11:29:49 +0000 |
commit | 7634900b4e12f75bf34ef2c1dea878812df7734a (patch) | |
tree | 6ddf911fcdbe55abc0bc0fa19a239ff0a949dc6d /test/win32ole/test_win32ole.rb | |
parent | d274cf524ad0a8571d16f449301987af685a983d (diff) | |
download | ruby-7634900b4e12f75bf34ef2c1dea878812df7734a.tar.gz |
* ext/win32ole/win32ole.c: add WIN32OLE#ole_query_interface.
thanks to Mikael Pahmp.
* test/win32ole/test_win32ole.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_win32ole.rb')
-rw-r--r-- | test/win32ole/test_win32ole.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb index d7a9b368a1..cf39c7681d 100644 --- a/test/win32ole/test_win32ole.rb +++ b/test/win32ole/test_win32ole.rb @@ -237,6 +237,15 @@ if defined?(WIN32OLE) assert_equal(shell.NameSpace(0).title, shell._invoke(0x60020002, [0], [WIN32OLE::VARIANT::VT_VARIANT]).title) end + def test_ole_query_interface + shell=WIN32OLE.new('Shell.Application') + assert_raise(ArgumentError) { + shell2 = shell.ole_query_interface + } + shell2 = shell.ole_query_interface('{A4C6892C-3BA9-11D2-9DEA-00C04FB16162}') + assert_instance_of(WIN32OLE, shell2) + end + def test_s_const_load assert(!defined?(CONST1::SsfWINDOWS)) shell=WIN32OLE.new('Shell.Application') |