Sha256: 2777c5f4d3fdc87e49fdb360db4eef0ae11c58412c3be590dff8e40998547f39
Contents?: true
Size: 621 Bytes
Versions: 16
Compression:
Stored size: 621 Bytes
Contents
activity org.ruboto.test_app.DialogFragmentActivity setup do |activity| start = Time.now loop do @text_view = activity.findViewById(42) wait_for_idle_sync fragment = activity.fragment_manager.findFragmentByTag('example_dialog') @fragment_text = fragment.view.findViewById(43) if fragment break if (@text_view && @fragment_text) || (Time.now - start > 60) sleep 1 end assert @text_view && @fragment_text end test 'start fragment', :ui => false do |activity| assert_equal 'Dialog Fragment Test', @text_view.text.to_s assert_equal 'Ruboto does fragments!', @fragment_text.text.to_s end
Version data entries
16 entries across 16 versions & 1 rubygems