summaryrefslogtreecommitdiffstats
path: root/test/win32ole
Commit message (Collapse)AuthorAgeFilesLines
* * ext/win32ole/win32ole.c (vtdate2rbtime): VT_DATE variant object suke2009-07-211-19/+30
| | | | | | | | | | | | | is converted to Time object now. * test/win32ole/test_win32ole_variant.rb (test_s_new_with_nil, test_conversion_time2date, test_conversion_str2date, test_conversion_vt_date, test_set_value): ditto. * ext/win32ole/win32ole.c (rbtime2vtdate): refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb (test_s_codepage_changed,suke2009-07-162-17/+48
| | | | | | | | | | | test_s_locale_set, test_s_locale_change): skip test if Japanese locale is not installed. [ruby-core:23806] * test/win32ole/test_win32ole_variant.rb (test_conversion_str2cy): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-0611-35/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize,suke2008-11-063-0/+24
| | | | | | | | | | | | | | | | folevariant_initialize): check argument type of WIN32OLE.connect, WIN32OLE.new, WIN32OLE_VARIANT.new. * test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc): ditto. * test/win32ole/test_win32ole_variant.rb (test_s_new_exc): ditto. * test/win32ole/test_win32ole_method.rb: add assertion of WIN32OLE_METHOD.new. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: rename test class.suke2008-11-024-54/+75
| | | | | | | | | | | * test/win32ole/test_win32ole_variant_outarg.rb: add in order to use ADO instead of Internet Explorer. remove test/win32ole/test_win32ole_variant_with_ie.rb. * test/win32ole/orig_data.csv: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: add teardown.suke2008-11-021-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_event_free): invoke IConnectionPoint::Unadvisesuke2008-11-023-341/+292
| | | | | | | | | | | before invoking IConnectionPoint::Release. * test/win32ole/test_win32ole_event.rb, test/win32ole/err_in_callback.rb, test/win32ole/test_err_in_callback.rb: Use ActiveX Data Object Library instead of InternetExplorer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (load_conv_function51932): supportsuke2008-10-131-14/+6
| | | | | | | | | CP51932 on cygwin and mingw32. thanks to arton. * test/win32ole/test_win32ole.rb (test_cp51932): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (set_ole_codepage, ole_cp2encoding,suke2008-10-121-0/+24
| | | | | | | | | ole_wc2mb, ole_vstr2wc, ole_mb2wc): support CP51932 (only mswin32). * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fev_initialize): initializationsuke2008-09-291-1/+1
| | | | | | | | | | | handler instance variable. * test/win32ole/test_win32ole_typelib.rb (test_s_typelibs): fix the warning of shadowing outer local variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb (teardown): get ridsuke2008-09-111-1/+3
| | | | | | | of infinite loop. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: InternetExplorer shouldsuke2008-09-102-15/+19
| | | | | | | | | be closed. * test/win32ole/err_in_callback.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_invoke): WIN32OLE#[] and WIN32OLE#[]=suke2008-08-271-0/+8
| | | | | | | | | accepts number argument. * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: do not require 'mkmf'matz2008-08-121-2/+2
| | | | | | unless WIN32OLE is defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (hash2named_arg): refactoring.suke2008-08-032-0/+26
| | | | | | | | | | | | * ext/win32ole/win32ole.c (ole_invoke, fole_respond_to, ev_on_event, fev_off_event): accepts Symbol argument. * test/win32ole/test_win32ole.rb: ditto. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: remove temporary files.suke2008-08-021-3/+12
| | | | | | | some refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (Init_win32ole): addsuke2008-07-261-50/+80
| | | | | | | | | WIN32OLE_EVENT#handler=, WIN32OLE_EVENT#handler * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* svn:eol-style LFnobu2008-07-252-84/+84
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/err_in_callback.rb : add test of raisingsuke2008-07-252-0/+84
| | | | | | | | | exception in WIN32OLE_EVENT callback. * test/win32ole/test_err_in_callback.rb : ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (Init_win32ole): addsuke2008-07-251-37/+53
| | | | | | | | | | | WIN32OLE_EVENT#off_event. * test/win32ole/test_win32ole_event.rb: ditto. * test/win32ole/test_win32ole_event.rb: some refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb (teardown): fix typo.suke2008-07-141-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): using hashsuke2008-07-131-1/+82
| | | | | | | | | to set value to the reference argument of event. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: add testsuke2008-07-121-0/+24
| | | | | | | | | | for WIN32OLE_EVENT#on_event_with_outargs * test/win32ole/test_win32ole_event.rb(teardown): calling WIN32OLE_EVENT.message_loop git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_typelib.rb: add some illegal argument test.suke2008-07-105-0/+27
| | | | | | | | | | | | | * test/win32ole/test_win32ole_type.rb: ditto. * test/win32ole/test_win32ole_event.rb: ditto. * test/win32ole/test_win32ole_param.rb: ditto. * test/win32ole/test_win32ole_method.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (find_default_source): bug fix whensuke2008-07-081-0/+10
| | | | | | | | | OLE object does not have default source interface. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (find_default_source): try tosuke2008-07-081-0/+14
| | | | | | | | | find COCLASS when WIN32OLE object is not COCLASS. * test/win32ole/test_win32ole_event.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(Init_win32ole): addsuke2008-07-071-1/+52
| | | | | | | | | | | WIN32OLE_TYPE#source_ole_types, WIN32OLE_TYPE#default_ole_types, WIN32OLE_TYPE#default_event_sources. * test/win32ole/test_win32ole_type.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_type.rb (test_initialize): add suke2008-07-061-1/+16
| | | | | | | | more assertions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_word.rb: check word installed.suke2008-07-051-25/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE#ole_respond_to?suke2008-07-051-0/+10
| | | | | | | * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE suke2008-07-041-0/+38
| | | | | | | | | to String conversion when negative value. * test/win32ole/test_win32ole_variant.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: avoid creating Ruby object duringsuke2008-07-021-0/+2
| | | | | | | | | | GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313] * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c : check String encoding whensuke2008-06-271-4/+5
| | | | | | | | | | converting String to VT_BSTR in OLE. * test/win32ole/test_win32ole.rb : ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* modify test according to changing WIN32OLE.codepage behavior.suke2008-02-162-2/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepagesuke2008-02-151-3/+6
| | | | | | | | | according to Encoding.default_external. * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb: ruby's encoding support.usa2008-01-291-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_set_safe_array): should not usesuke2008-01-191-0/+8
| | | | | | | | | recursive calling. * test/win32ole/test_win32ole_variant.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb(test_s_codepage_changed) : modify testsuke2008-01-051-11/+22
| | | | | | | for m17n. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb(test_s_locale_change) :add assertion whichsuke2008-01-051-0/+3
| | | | | | | should raise WIN32OLERuntimeError. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (foletype_s_ole_classes, suke2007-10-133-7/+22
| | | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@13690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE_EVENT#unadvise.suke2007-09-041-1/+21
| | | | | | | * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_type_progid): progid getted bysuke2007-08-282-2/+2
| | | | | | | | | | | | | | | ProgIDFromCLSID should be freed by CoTaskMemFree. Thanks, arton. * test/win32ole/test_win32ole.rb (test_raise_message): set negative compareMode value to raise WIN32OLERuntimeError. * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types): support some environment which returns IShellDispatch5 instead of IShellDispatch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_type_progid): fix the bug.suke2007-08-271-4/+0
| | | | | | | | | | [ruby-dev:31576] * test/win32ole/test_win32ole_type.rb (test_initialize): remove duplicate assertions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (reg_get_value): use RegQueryValueEx insteadsuke2007-08-231-0/+25
| | | | | | | | | | | | | of RegQueryValueEx. * ext/win32ole/win32ole.c (typelib_file_from_clsid): fix the bug that the function always returns Qnil. * test/win32ole/test_win32ole_type.rb (test_initialize): add some test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove puts for debugsuke2007-08-071-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix test of PROPERTYPUT_REF in some environmentsuke2007-08-061-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB#library_name,suke2007-03-091-0/+10
| | | | | | | | | WIN32OLE_TYPELIB#visible?. * test/win32ole/test_win32ole_typelib.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (get_ptr_of_variant, ole_set_safe_array,suke2007-03-021-6/+278
| | | | | | | | | | | | | | | | | ole_val2ptr_variant, ole_val2olevariantdata, ole_variant2val, ): fix some bugs of WIN32OLE_VARIANT.new when variant type is VT_ARRAY|VT_BSTR or VT_BYREF. * ext/win32ole/win32ole.c (folevariant_s_array, folevariant_initialize): WIN32OLE_VARIANT#[], WIN32OLE_VARIANT#[]=, WIN32OLE_VARIANT#value= is defined as instance method of WIN32OLE_VARIANT. * test/win32ole/test_win32ole_variant.rb: add some test for VT_ARRAY, VT_BYREF variant type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT.array, suke2007-02-231-0/+104
| | | | | | | | | | WIN32OLE_VARIANT#value=, refactoring. * test/win32ole/test_win32ole_variant.rb: add some test for WIN32OLE_VARIANT.array, WIN32OLE_VARIANT#value=. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_val2olevariantdata): suke2007-02-111-0/+12
| | | | | | | | | | | WIN32OLE_VARIANT#new accepts nil when variant type is VT_ARRAY. * test/win32ole/test_win32ole_variant.rb: ditto. * ext/win32ole/win32ole.c: small refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e