Sha256: 77aac0144c2bb5f8a5a3ee4e0c2dac52138e05516959776e360edcfd0cf545e2
Contents?: true
Size: 668 Bytes
Versions: 10
Compression:
Stored size: 668 Bytes
Contents
describe "UIControlWrap" do it "should support the 'when' event handler" do button = UIButton.buttonWithType(UIButtonTypeRoundedRect) touched = nil button.when(UIControlEventTouchUpInside) do touched = 'for the very first time' end button.sendActionsForControlEvents(UIControlEventTouchUpInside) touched.should == 'for the very first time' end it "should support the 'when' event handler for UISlider" do button = UISlider.alloc.init changed = nil button.when(UIControlEventValueChanged) do changed = 1 end button.sendActionsForControlEvents(UIControlEventValueChanged) changed.should == 1 end end
Version data entries
10 entries across 10 versions & 1 rubygems