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

Version Path
ruboto-1.6.1 test/activity/dialog_fragment_activity_test.rb
ruboto-1.6.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.5.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.4.1 test/activity/dialog_fragment_activity_test.rb
ruboto-1.4.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.3.1 test/activity/dialog_fragment_activity_test.rb
ruboto-1.3.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.2.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.1.2 test/activity/dialog_fragment_activity_test.rb
ruboto-1.1.1 test/activity/dialog_fragment_activity_test.rb
ruboto-1.1.0 test/activity/dialog_fragment_activity_test.rb
ruboto-1.0.3 test/activity/dialog_fragment_activity_test.rb
ruboto-1.0.2 test/activity/dialog_fragment_activity_test.rb
ruboto-1.0.1 test/activity/dialog_fragment_activity_test.rb
ruboto-1.0.0 test/activity/dialog_fragment_activity_test.rb
ruboto-0.16.0 test/activity/dialog_fragment_activity_test.rb