test/activity/navigation_activity_test.rb in ruboto-1.2.0 vs test/activity/navigation_activity_test.rb in ruboto-1.3.0

- old
+ new

@@ -88,20 +88,21 @@ btn.perform_click end puts 'waitForIdleSync' waitForIdleSync puts 'wait_for_monitor_with_timeout' - current_activity = wait_for_monitor_with_timeout(monitor, 10000) + current_activity = monitor.wait_for_activity_with_timeout(10000) ensure removeMonitor(monitor) end puts "new activity: #{current_activity.inspect}" assert current_activity.is_a? Java::OrgRuboto::RubotoActivity current_activity end def button_activity_text(button_id, activity, expected_text_id, expected_text_string, activity_class_name = 'org.ruboto.RubotoActivity') + puts "Start activity: #{expected_text_string}" current_activity = start_activity_by_button(activity, button_id, activity_class_name) start = Time.now loop do @text_view = current_activity.find_view_by_id(expected_text_id) break if @text_view || (Time.now - start > 10)