method
test_on_event4

Ruby latest stable (v2_5_5)
-
0 notes -
Class: TestWIN32OLE_EVENT
- 1_8_6_287 (0)
- 1_8_7_72 (0)
- 1_8_7_330 (0)
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
test_on_event4()
public
Hide source
# File ext/win32ole/tests/test_win32ole_event.rb, line 68 def test_on_event4 ev = WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents') ev.on_event{|*args| handler1} ev.on_event{|*args| handler2} ev.on_event('NavigateComplete'){|*args| handler3(*args)} @ie.navigate("file:///#{@f}") while @ie.busy sleep 0.1 end assert(@event3!="") assert("handler2", @event2) end