Sha256: bb71907add8f0511e7ff2dcb49483831f12d749f49a14622e434b40fd85a878b

Contents?: true

Size: 734 Bytes

Versions: 28

Compression:

Stored size: 734 Bytes

Contents

activity Java::org.ruboto.test_app.MarginsActivity

setup do |activity|
  start = Time.now
  loop do
    @text_view_margins = activity.findViewById(42)
    @text_view_layout = activity.findViewById(43)
    @text_view_fieldset = activity.findViewById(44)
    break if (@text_view_margins && @text_view_layout && @text_view_fieldset) || (Time.now - start > 60)
    sleep 1
  end
  assert @text_view_margins
  assert @text_view_layout
  assert @text_view_fieldset
end

def left_margin(view)
  view.get_layout_params.leftMargin
end

%w(margins layout fieldset).each do |view_type|
  test("margins are set through #{view_type}") do |activity|  
    assert_equal 100, left_margin(instance_variable_get("@text_view_#{view_type}"))
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ruboto-1.1.2 test/activity/margins_activity_test.rb
ruboto-1.1.1 test/activity/margins_activity_test.rb
ruboto-1.1.0 test/activity/margins_activity_test.rb
ruboto-1.0.3 test/activity/margins_activity_test.rb
ruboto-1.0.2 test/activity/margins_activity_test.rb
ruboto-1.0.1 test/activity/margins_activity_test.rb
ruboto-1.0.0 test/activity/margins_activity_test.rb
ruboto-0.16.0 test/activity/margins_activity_test.rb
ruboto-0.15.0 test/activity/margins_activity_test.rb
ruboto-0.14.0 test/activity/margins_activity_test.rb
ruboto-0.13.0 test/activity/margins_activity_test.rb
ruboto-0.12.0 test/activity/margins_activity_test.rb
ruboto-0.13.0.rc.0 test/activity/margins_activity_test.rb
ruboto-0.12.0.rc.0 test/activity/margins_activity_test.rb
ruboto-0.11.0 test/activity/margins_activity_test.rb
ruboto-0.11.0.rc.1 test/activity/margins_activity_test.rb
ruboto-0.11.0.rc.0 test/activity/margins_activity_test.rb
ruboto-0.10.2 test/activity/margins_activity_test.rb
ruboto-0.10.2.rc.0 test/activity/margins_activity_test.rb
ruboto-0.10.1 test/activity/margins_activity_test.rb