Sha256: 8e164a759208c57c9da67b60c644c568582d6c67bfa34ef4b1e09e61779e8427
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
# rake ios['ios/element/text'] describe 'ios/element/text' do def ui_catalog 'UICatalog' end def before_first screen.must_equal catalog end t 'before_first' do before_first end t 'first_text' do first_text.text.must_equal ui_catalog end t 'last_text' do last_text.text.must_equal '' last_text.name.must_equal 'Transitions, Shows UIViewAnimationTransitions' end t 'text' do text('mat').text.must_equal '' text(1).text.must_equal ui_catalog text('mat').name.must_equal 'Transitions, Shows UIViewAnimationTransitions' end t 'texts' do exp = ['Controls, Various uses of UIControl', 'Segments, Various uses of UISegmentedControl'] texts.length.must_equal 13 texts('trol').map { |e| e.name }.must_equal exp texts('uses').length.must_equal 7 end t 'text_exact' do # should fail set_wait 0 act = begin text_exact 'mos' rescue end act.must_be_nil set_wait # should pass text_exact(ui_catalog).text.must_equal ui_catalog end t 'texts_exact' do texts_exact('UICatalog').length.must_equal 1 end end
Version data entries
8 entries across 8 versions & 1 rubygems