RubyApp 0.7.15 → 0.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,13 +65,13 @@
65
65
  // RubyApp.log('EVAL ' + statement)
66
66
  eval(statement);
67
67
  } );
68
- var _stop = new Date();
69
- RubyApp.log('SUCCESS ' + event._class + ' ' + ((_stop - _start) / 1000) + 's');
70
68
  };
71
69
  if (event.delay > 0)
72
70
  window.setTimeout(onSuccess, event.delay);
73
71
  else
74
72
  onSuccess();
73
+ var _stop = new Date();
74
+ RubyApp.log('SUCCESS ' + event._class + ' ' + ((_stop - _start) / 1000) + 's');
75
75
  } )
76
76
  .error( function(request, message, exception) {
77
77
  var _stop = new Date();
@@ -0,0 +1,14 @@
1
+ load_script! 'common/features'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Buttons') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.delay(2000).click_link('Buttons') }
5
+
6
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Button') }
7
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.delay(2000).click_link('Button') }
8
+
9
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You are on this page.') }
10
+
11
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.delay(2000).click_link('Back') }
12
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.delay(2000).click_link('Back') }
13
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.delay(2000).click_link('Back') }
14
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.7.15"
2
+ VERSION = "0.7.16"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.15
4
+ version: 0.7.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1502,6 +1502,7 @@ files:
1502
1502
  - lib/ruby_app/scripts/features/authentications/open_id/yahoo.rb
1503
1503
  - lib/ruby_app/scripts/features/buttons.rb
1504
1504
  - lib/ruby_app/scripts/features/calendars/month.rb
1505
+ - lib/ruby_app/scripts/features/delay.rb
1505
1506
  - lib/ruby_app/scripts/features/dialogs.rb
1506
1507
  - lib/ruby_app/scripts/features/inputs.rb
1507
1508
  - lib/ruby_app/scripts/features/lists.rb
@@ -1561,7 +1562,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1561
1562
  version: '0'
1562
1563
  segments:
1563
1564
  - 0
1564
- hash: -1441367662488162587
1565
+ hash: 1721820473290415695
1565
1566
  required_rubygems_version: !ruby/object:Gem::Requirement
1566
1567
  none: false
1567
1568
  requirements:
@@ -1570,7 +1571,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1570
1571
  version: '0'
1571
1572
  segments:
1572
1573
  - 0
1573
- hash: -1441367662488162587
1574
+ hash: 1721820473290415695
1574
1575
  requirements: []
1575
1576
  rubyforge_project:
1576
1577
  rubygems_version: 1.8.25