From c769454c0e17fce28a18b73e1800c49edea6fc7d Mon Sep 17 00:00:00 2001 From: suke Date: Fri, 9 Mar 2007 22:21:59 +0000 Subject: * 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 --- test/win32ole/test_win32ole_typelib.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') 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) -- cgit v1.2.3