test/activity/navigation_activity.rb in ruboto-0.10.0 vs test/activity/navigation_activity.rb in ruboto-0.10.1
- old
+ new
@@ -17,10 +17,11 @@
button :text => 'Java backed by script name', :width => :match_parent, :id => 45, :on_click_listener => proc { java_backed_by_script_name }
button :text => 'Inline block', :width => :match_parent, :id => 46, :on_click_listener => proc { start_inline_activity }
button :text => 'Inline block with options', :width => :match_parent, :id => 47, :on_click_listener => proc { start_inline_activity_with_options }
button :text => 'Infile class', :width => :match_parent, :id => 48, :on_click_listener => proc { start_infile_activity }
button :text => 'Ruby file activity', :width => :match_parent, :id => 49, :on_click_listener => proc { start_ruby_file_activity }
+ button :text => 'RubotoActivity no config', :width => :match_parent, :id => 50, :on_click_listener => proc { start_ruboto_activity_no_config }
end
end
private
@@ -33,20 +34,20 @@
def java_backed_by_ruby_class
i = android.content.Intent.new
i.setClassName($package_name, 'org.ruboto.RubotoActivity')
configBundle = android.os.Bundle.new
configBundle.put_string('ClassName', 'NavigationTargetActivity')
- i.putExtra('RubotoActivity Config', configBundle)
+ i.putExtra('Ruboto Config', configBundle)
startActivity(i)
end
def java_backed_by_script_name
i = android.content.Intent.new
i.setClassName($package_name, 'org.ruboto.RubotoActivity')
configBundle = android.os.Bundle.new
configBundle.put_string('Script', 'navigation_target_activity.rb')
- i.putExtra('RubotoActivity Config', configBundle)
+ i.putExtra('Ruboto Config', configBundle)
startActivity(i)
end
def start_inline_activity
start_ruboto_activity do
@@ -79,19 +80,25 @@
def start_infile_activity
i = android.content.Intent.new
i.setClassName($package_name, 'org.ruboto.RubotoActivity')
configBundle = android.os.Bundle.new
configBundle.put_string('ClassName', 'InfileActivity')
- i.putExtra('RubotoActivity Config', configBundle)
+ i.putExtra('Ruboto Config', configBundle)
startActivity(i)
end
def start_ruby_file_activity
i = android.content.Intent.new
i.setClassName($package_name, 'org.ruboto.RubotoActivity')
configBundle = android.os.Bundle.new
configBundle.put_string('ClassName', 'RubyFileActivity')
- i.putExtra('RubotoActivity Config', configBundle)
+ i.putExtra('Ruboto Config', configBundle)
+ startActivity(i)
+ end
+
+ def start_ruboto_activity_no_config
+ i = android.content.Intent.new
+ i.setClassName($package_name, 'org.ruboto.RubotoActivity')
startActivity(i)
end
end