diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-09 22:21:59 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-09 22:21:59 +0000 |
commit | c769454c0e17fce28a18b73e1800c49edea6fc7d (patch) | |
tree | 86793519358305c473b5dbf297ae4446de175a8d /test | |
parent | c49418522dec35ce043e0a9736fae32217002384 (diff) |
* ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB#library_name,
WIN32OLE_TYPELIB#visible?.
* test/win32ole/test_win32ole_typelib.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/win32ole/test_win32ole_typelib.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb index 7b83bf8bea..2da50d9299 100644 --- a/test/win32ole/test_win32ole_typelib.rb +++ b/test/win32ole/test_win32ole_typelib.rb @@ -73,6 +73,16 @@ if defined?(WIN32OLE_TYPELIB) assert_match(/shell32\.dll$/i, tlib.path) end + def test_visible? + tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") + assert(tlib.visible?) + end + + def test_library_name + tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") + assert_equal("Shell32", tlib.library_name) + end + def test_to_s tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") assert_equal("Microsoft Shell Controls And Automation", tlib.to_s) |