ruby-changes:6335
From: suke <ko1@a...>
Date: Thu, 3 Jul 2008 20:01:42 +0900 (JST)
Subject: [ruby-changes:6335] Ruby:r17851 (ruby_1_8): remove test_unadvise.
suke 2008-07-03 20:01:30 +0900 (Thu, 03 Jul 2008) New Revision: 17851 Modified files: branches/ruby_1_8/ext/win32ole/tests/test_win32ole_event.rb Log: remove test_unadvise. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17851 Index: ruby_1_8/ext/win32ole/tests/test_win32ole_event.rb =================================================================== --- ruby_1_8/ext/win32ole/tests/test_win32ole_event.rb (revision 17850) +++ ruby_1_8/ext/win32ole/tests/test_win32ole_event.rb (revision 17851) @@ -91,26 +91,6 @@ assert(@event!="") end - def test_unadvise - ev = WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents') - ev.on_event {|*args| default_handler(*args)} - @ie.navigate("file:///#{@f}") - while @ie.busy - sleep 0.1 - end - assert_match(/BeforeNavigate/, @event) - ev.unadvise - @event = "" - @ie.navigate("file:///#{@f}") - while @ie.busy - sleep 0.1 - end - assert_equal("", @event); - assert_raise(WIN32OLERuntimeError) { - ev.on_event {|*args| default_handler(*args)} - } - end - def handler1 @event2 = "handler1" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/