RubyApp 0.6.48 → 0.6.49

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -47,6 +47,11 @@ namespace :ruby_app do
47
47
 
48
48
  end
49
49
 
50
+ desc 'Run the test script through PhantomJS'
51
+ task :test do |task|
52
+ system('phantomjs lib/ruby_app/scripts/phantom.js')
53
+ end
54
+
50
55
  namespace :cache do
51
56
 
52
57
  desc 'List all cached files'
@@ -189,12 +189,6 @@
189
189
  var windowBottom = windowTop + $(window).height();
190
190
  var elementTop = $(selector).offset().top;
191
191
  var elementBottom = elementTop + $(selector).height();
192
-
193
- RubyApp.log('windowTop=' + windowTop);
194
- RubyApp.log('windowBottom=' + windowBottom);
195
- RubyApp.log('elementTop=' + elementTop);
196
- RubyApp.log('elementBottom=' + elementBottom);
197
-
198
192
  return ((elementBottom >= windowTop) && (elementTop <= windowBottom) && (elementBottom <= windowBottom) && (elementTop >= windowTop) );
199
193
  },
200
194
  this.assertExists = function(selector) {
@@ -1,9 +1,4 @@
1
1
  load_script! 'default'
2
- load_script! 'elements/authentications/facebook'
3
- load_script! 'elements/authentications/o_auth/git_hub'
4
- load_script! 'elements/authentications/open_id/google'
5
- load_script! 'elements/authentications/open_id/my_open_id'
6
- load_script! 'elements/authentications/open_id/yahoo'
7
2
  load_script! 'elements/buttons'
8
3
  load_script! 'elements/calendars/month'
9
4
  load_script! 'elements/dialogs'
@@ -0,0 +1,6 @@
1
+ load_script! 'elements/authentications/facebook'
2
+ load_script! 'elements/authentications/o_auth/git_hub'
3
+ load_script! 'elements/authentications/open_id/google'
4
+ load_script! 'elements/authentications/open_id/my_open_id'
5
+ load_script! 'elements/authentications/open_id/yahoo'
6
+ load_script! 'all_once'
@@ -0,0 +1,13 @@
1
+ var page = require('webpage').create();
2
+ page.open('http://localhost:8000/?script=phantom');
3
+ page.onConsoleMessage = function(message) {
4
+ console.log('CONSOLE ' + message);
5
+ };
6
+ page.onConfirm = function(message) {
7
+ console.log('FAIL ' + message);
8
+ phantom.exit();
9
+ };
10
+ page.onClosing = function(page) {
11
+ console.log('SUCCESS ' + page.url);
12
+ phantom.exit();
13
+ };
@@ -0,0 +1,3 @@
1
+ load_script! 'all_once'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.execute('window.close();') }
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.48"
2
+ VERSION = "0.6.49"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 103
4
+ hash: 101
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 48
10
- version: 0.6.48
9
+ - 49
10
+ version: 0.6.49
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-12-05 00:00:00 Z
18
+ date: 2012-12-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -566,6 +566,7 @@ files:
566
566
  - lib/ruby_app/response.rb
567
567
  - lib/ruby_app/scripts/all_continuous.rb
568
568
  - lib/ruby_app/scripts/all_once.rb
569
+ - lib/ruby_app/scripts/all_once_with_logon.rb
569
570
  - lib/ruby_app/scripts/common/features.rb
570
571
  - lib/ruby_app/scripts/common/features/authentications.rb
571
572
  - lib/ruby_app/scripts/common/reset.rb
@@ -584,6 +585,8 @@ files:
584
585
  - lib/ruby_app/scripts/elements/navigation/navigation_list.rb
585
586
  - lib/ruby_app/scripts/elements/swipe.rb
586
587
  - lib/ruby_app/scripts/elements/trigger.rb
588
+ - lib/ruby_app/scripts/phantom.js
589
+ - lib/ruby_app/scripts/phantom.rb
587
590
  - lib/ruby_app/session.rb
588
591
  - lib/ruby_app/templates/application/Gemfile
589
592
  - lib/ruby_app/templates/application/Rakefile