celerity 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data/History.txt +15 -1
  2. data/Manifest.txt +174 -0
  3. data/README.txt +19 -10
  4. data/config/hoe.rb +68 -0
  5. data/config/requirements.rb +15 -0
  6. data/lib/celerity.rb +14 -11
  7. data/lib/celerity/collections.rb +37 -8
  8. data/lib/celerity/container.rb +100 -3
  9. data/lib/celerity/disabled_element.rb +4 -2
  10. data/lib/celerity/element.rb +21 -8
  11. data/lib/celerity/element_collections.rb +4 -7
  12. data/lib/celerity/element_locator.rb +1 -0
  13. data/lib/celerity/elements/button.rb +6 -2
  14. data/lib/celerity/elements/file_field.rb +1 -1
  15. data/lib/celerity/elements/form.rb +1 -2
  16. data/lib/celerity/elements/frame.rb +0 -3
  17. data/lib/celerity/elements/image.rb +1 -4
  18. data/lib/celerity/elements/label.rb +1 -0
  19. data/lib/celerity/elements/link.rb +2 -0
  20. data/lib/celerity/elements/option.rb +1 -0
  21. data/lib/celerity/elements/radio_check.rb +3 -5
  22. data/lib/celerity/elements/select_list.rb +3 -10
  23. data/lib/celerity/elements/table.rb +8 -22
  24. data/lib/celerity/elements/table_body.rb +5 -11
  25. data/lib/celerity/elements/table_cell.rb +1 -0
  26. data/lib/celerity/elements/table_footer.rb +30 -0
  27. data/lib/celerity/elements/table_header.rb +30 -0
  28. data/lib/celerity/elements/table_row.rb +5 -3
  29. data/lib/celerity/elements/text_field.rb +18 -13
  30. data/lib/celerity/exception.rb +8 -8
  31. data/lib/celerity/extra/method_generator.rb +5 -2
  32. data/lib/celerity/htmlunit/htmlunit-2.2-SNAPSHOT.jar +0 -0
  33. data/lib/celerity/ie.rb +195 -141
  34. data/lib/celerity/non_control_elements.rb +30 -4
  35. data/lib/celerity/version.rb +1 -1
  36. data/lib/celerity/watir_compatibility.rb +62 -0
  37. data/setup.rb +0 -2
  38. data/spec/area_spec.rb +4 -1
  39. data/spec/areas_spec.rb +1 -1
  40. data/spec/button_spec.rb +35 -17
  41. data/spec/buttons_spec.rb +1 -1
  42. data/spec/checkbox_spec.rb +6 -4
  43. data/spec/checkboxes_spec.rb +1 -1
  44. data/spec/div_spec.rb +20 -19
  45. data/spec/divs_spec.rb +2 -2
  46. data/spec/element_spec.rb +13 -2
  47. data/spec/filefield_spec.rb +6 -3
  48. data/spec/filefields_spec.rb +1 -1
  49. data/spec/form_spec.rb +4 -1
  50. data/spec/forms_spec.rb +1 -1
  51. data/spec/frame_spec.rb +6 -2
  52. data/spec/hidden_spec.rb +8 -4
  53. data/spec/hiddens_spec.rb +1 -1
  54. data/spec/hn_spec.rb +86 -0
  55. data/spec/hns_spec.rb +41 -0
  56. data/spec/html/bug_duplicate_attributes.html +14 -0
  57. data/spec/html/bug_javascript_001.html +11 -0
  58. data/spec/html/forms_with_input_elements.html +11 -11
  59. data/spec/html/images.html +18 -15
  60. data/spec/html/latin1_text.html +16 -0
  61. data/spec/html/non_control_elements.html +28 -4
  62. data/spec/html/tables.html +3 -3
  63. data/spec/html/utf8_text.html +15 -0
  64. data/spec/htmlunit_spec.rb +27 -0
  65. data/spec/ie_spec.rb +47 -12
  66. data/spec/image_spec.rb +4 -7
  67. data/spec/images_spec.rb +3 -2
  68. data/spec/label_spec.rb +4 -3
  69. data/spec/labels_spec.rb +1 -1
  70. data/spec/li_spec.rb +11 -8
  71. data/spec/link_spec.rb +5 -1
  72. data/spec/links_spec.rb +2 -1
  73. data/spec/lis_spec.rb +3 -2
  74. data/spec/map_spec.rb +4 -1
  75. data/spec/maps_spec.rb +1 -1
  76. data/spec/meta_spec.rb +6 -0
  77. data/spec/ol_spec.rb +73 -0
  78. data/spec/ols_spec.rb +41 -0
  79. data/spec/option_spec.rb +129 -0
  80. data/spec/p_spec.rb +4 -1
  81. data/spec/pre_spec.rb +4 -1
  82. data/spec/pres_spec.rb +1 -1
  83. data/spec/ps_spec.rb +2 -1
  84. data/spec/radio_spec.rb +7 -19
  85. data/spec/radios_spec.rb +1 -1
  86. data/spec/select_list_spec.rb +19 -57
  87. data/spec/select_lists_spec.rb +3 -2
  88. data/spec/span_spec.rb +8 -5
  89. data/spec/spans_spec.rb +2 -1
  90. data/spec/spec_helper.rb +8 -43
  91. data/spec/table_bodies_spec.rb +17 -4
  92. data/spec/table_body_spec.rb +47 -16
  93. data/spec/table_cell_spec.rb +5 -3
  94. data/spec/table_cells_spec.rb +1 -1
  95. data/spec/table_footer_spec.rb +94 -0
  96. data/spec/table_footers_spec.rb +53 -0
  97. data/spec/table_header_spec.rb +94 -0
  98. data/spec/table_headers_spec.rb +53 -0
  99. data/spec/table_row_spec.rb +25 -4
  100. data/spec/table_rows_spec.rb +1 -1
  101. data/spec/table_spec.rb +22 -2
  102. data/spec/tables_spec.rb +2 -1
  103. data/spec/text_field_spec.rb +52 -20
  104. data/spec/text_fields_spec.rb +1 -1
  105. data/spec/ul_spec.rb +73 -0
  106. data/spec/uls_spec.rb +41 -0
  107. data/spec/watir_compatability_spec.rb +253 -0
  108. data/support/celerity_viewer/rubycocoa/CelerityViewer.icns +0 -0
  109. data/support/celerity_viewer/rubycocoa/English.lproj/Main.nib/classes.nib +37 -0
  110. data/support/celerity_viewer/rubycocoa/English.lproj/Main.nib/info.nib +19 -0
  111. data/support/celerity_viewer/rubycocoa/English.lproj/Main.nib/keyedobjects.nib +0 -0
  112. data/support/celerity_viewer/rubycocoa/Info.plist.erb +28 -0
  113. data/support/celerity_viewer/rubycocoa/MainController.rb +23 -0
  114. data/support/celerity_viewer/rubycocoa/README +94 -0
  115. data/support/celerity_viewer/rubycocoa/Rakefile +100 -0
  116. data/support/celerity_viewer/rubycocoa/distributed_viewer.rb +86 -0
  117. data/support/celerity_viewer/rubycocoa/main.m +7 -0
  118. data/support/celerity_viewer/rubycocoa/main.rb +27 -0
  119. data/support/spec_server.rb +64 -0
  120. data/tasks/benchmark.rake +1 -0
  121. data/tasks/rdoc.rake +4 -0
  122. data/tasks/rspec.rake +10 -3
  123. data/tasks/simple_ci.rake +94 -0
  124. data/tasks/specserver.rake +21 -0
  125. metadata +160 -114
  126. data/spec/table_bodies.rb +0 -40
  127. data/tasks/testserver.rake +0 -32
@@ -0,0 +1,94 @@
1
+ require "rubygems"
2
+ require "fileutils"
3
+ require "erb"
4
+ require "pp"
5
+
6
+ begin
7
+ require "mongrel"
8
+ rescue LoadError
9
+ end
10
+
11
+ task :simple_ci do
12
+ INTERVAL = (60*5)
13
+ CI_ROOT = File.dirname(__FILE__) + "/../simple_ci"
14
+ ROOT = File.expand_path(CI_ROOT + "/..")
15
+ Dir.mkdir(CI_ROOT) unless File.exist?(CI_ROOT)
16
+
17
+ class SpecFile < Struct.new(:file, :describes)
18
+ attr_accessor :passed
19
+ end
20
+
21
+ def get_specs
22
+ Dir[File.dirname(__FILE__) + '/../spec/**/*_spec.rb'].map do |file|
23
+ SpecFile.new(file, File.read(file)[/describe\(?\s*["'](.+?)["']/, 1] || File.basename(file) )
24
+ end
25
+ end
26
+
27
+ class SimpleCI < Mongrel::HttpHandler
28
+ def self.template=(rhtml); @@template = rhtml; end
29
+
30
+ def initialize(results)
31
+ @results = results
32
+ super()
33
+ end
34
+
35
+ def process(request, response)
36
+ response.start(200) do |header, io|
37
+ if @results
38
+ io.write ERB.new(@@template).result
39
+ end
40
+ end
41
+ end
42
+
43
+ end
44
+
45
+ @results = {}
46
+ SimpleCI.template = <<-HTML
47
+ <html>
48
+ <head>
49
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
50
+ <title>Celerity Simple CI</title>
51
+ <style type="text/css" media="screen">
52
+ body {font: 10px/16px "Lucida Grande", Geneva, Arial, Verdana, sans-serif; background-color: #fff;color: #333;}
53
+ a{color:#2971a7;}
54
+ a:link,a:visited,a:active{text-decoration:none}
55
+ a:hover{text-decoration:underline}
56
+ table{border-collapse:collapse;border-spacing:0;margin-left:24px;}
57
+ </style>
58
+ </head>
59
+
60
+ <h1> Celerity </h1>
61
+ <h3><a href="result/">Test Results</a></h3>
62
+ <h3><a href="coverage/">Code Coverage</a></h3>
63
+ </html>
64
+ HTML
65
+
66
+ begin
67
+ @server = Mongrel::HttpServer.new('0.0.0.0', '8080')
68
+ rescue NameError
69
+ abort("Run `(jruby -S) gem install mongrel` to use this task.")
70
+ end
71
+ @server.register("/result", Mongrel::DirHandler.new(CI_ROOT))
72
+ @server.register("/coverage", Mongrel::DirHandler.new(CI_ROOT + "/coverage/coverage"))
73
+ @server.register("/", SimpleCI.new(@results))
74
+ Thread.new { @server.run.join }
75
+ puts "simple_ci started on #{@server.host}:#{@server.port}"
76
+ loop do
77
+ puts %x{svn up}
78
+ puts "*** running specs at #{Time.now}"
79
+ specs = get_specs
80
+
81
+ pp specs if $DEBUG
82
+ puts "*** running rcov at #{Time.now}"
83
+ puts %x{jruby -S rake --silent spec > #{CI_ROOT}/index2.html}
84
+ FileUtils.mv(CI_ROOT + "/index2.html", CI_ROOT + "/index.html", :verbose => true)
85
+ Dir[CI_ROOT + "/coverage/*"].each { |f| FileUtils.rm_r(f, :verbose => true) }
86
+ FileUtils.mv(CI_ROOT + "/../coverage", CI_ROOT + "/coverage", :verbose => true)
87
+ puts "\n*** sleeping #{Time.now}"
88
+ sleep(INTERVAL)
89
+ end
90
+
91
+ end
92
+
93
+
94
+
@@ -0,0 +1,21 @@
1
+ namespace :specserver do
2
+ task :http do
3
+ require File.dirname(__FILE__) + "/../support/spec_server.rb"
4
+ s = Celerity::SpecServer.new
5
+ s.run
6
+ puts "server started on #{s.host}\n log at: #{s.log_file}"
7
+ s.thread.join
8
+ end
9
+
10
+ desc "Run HTTPS webserver for specs"
11
+ task :https do
12
+ require File.dirname(__FILE__) + "/../support/spec_server.rb"
13
+ s = Celerity::SpecServer.new(:ssl => true)
14
+ s.run
15
+ puts "server started on #{s.host}\n log at: #{s.log_file}"
16
+ s.thread.join
17
+ end
18
+ end
19
+
20
+ desc "Run HTTP webserver for specs"
21
+ task :specserver => [:'specserver:http']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celerity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - T. Alexander Lystad
@@ -11,11 +11,11 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2008-05-15 00:00:00 +02:00
14
+ date: 2008-05-27 00:00:00 +02:00
15
15
  default_executable:
16
16
  dependencies: []
17
17
 
18
- description: Celerity is a JRuby wrapper around the HtmlUnit Java library (http://htmlunit.sourceforge.net/). The goal of the project is to duplicate the Watir API (http://wtf.rubyforge.org/) using HtmlUnit as the underlying engine.
18
+ description: Celerity is a JRuby library for easy and fast functional test automation for web applications. It is a wrapper around the HtmlUnit Java library and is currently aimed at providing the same API and functionality as Watir.
19
19
  email: alexander.lystad@finntech.no
20
20
  executables: []
21
21
 
@@ -23,138 +23,184 @@ extensions: []
23
23
 
24
24
  extra_rdoc_files:
25
25
  - History.txt
26
- - License.txt
27
26
  - README.txt
27
+ - Manifest.txt
28
+ - License.txt
28
29
  files:
29
30
  - History.txt
30
- - License.txt
31
+ - spec/table_bodies_spec.rb
32
+ - spec/table_spec.rb
33
+ - spec/checkbox_spec.rb
34
+ - spec/buttons_spec.rb
35
+ - spec/table_headers_spec.rb
36
+ - spec/areas_spec.rb
37
+ - spec/tables_spec.rb
38
+ - spec/forms_spec.rb
39
+ - spec/uls_spec.rb
40
+ - spec/map_spec.rb
41
+ - spec/p_spec.rb
42
+ - spec/html/bug_javascript_001.html
43
+ - spec/html/images/originaltriangle.jpg
44
+ - spec/html/images/circle.jpg
45
+ - spec/html/images/1.gif
46
+ - spec/html/images/square.jpg
47
+ - spec/html/images/minus.gif
48
+ - spec/html/images/button.jpg
49
+ - spec/html/images/map2.gif
50
+ - spec/html/images/3.gif
51
+ - spec/html/images/map.gif
52
+ - spec/html/images/plus.gif
53
+ - spec/html/images/triangle.jpg
54
+ - spec/html/images/2.gif
55
+ - spec/html/frame_2.html
56
+ - spec/html/iframes.html
57
+ - spec/html/tables.html
58
+ - spec/html/frames.html
59
+ - spec/html/2000_spans.html
60
+ - spec/html/images.html
61
+ - spec/html/latin1_text.html
62
+ - spec/html/non_control_elements.html
63
+ - spec/html/bug_duplicate_attributes.html
64
+ - spec/html/frame_1.html
65
+ - spec/html/utf8_text.html
66
+ - spec/html/forms_with_input_elements.html
67
+ - spec/images_spec.rb
68
+ - spec/spec_helper.rb
69
+ - spec/ps_spec.rb
70
+ - spec/hn_spec.rb
71
+ - spec/filefield_spec.rb
72
+ - spec/area_spec.rb
73
+ - spec/htmlunit_spec.rb
74
+ - spec/labels_spec.rb
75
+ - spec/table_cell_spec.rb
76
+ - spec/div_spec.rb
77
+ - spec/spans_spec.rb
78
+ - spec/form_spec.rb
79
+ - spec/label_spec.rb
80
+ - spec/hns_spec.rb
81
+ - spec/table_body_spec.rb
82
+ - spec/table_rows_spec.rb
83
+ - spec/text_field_spec.rb
84
+ - spec/button_spec.rb
85
+ - spec/spec.opts
86
+ - spec/radio_spec.rb
87
+ - spec/links_spec.rb
88
+ - spec/meta_spec.rb
89
+ - spec/span_spec.rb
90
+ - spec/ie_spec.rb
91
+ - spec/checkboxes_spec.rb
92
+ - spec/ul_spec.rb
93
+ - spec/table_row_spec.rb
94
+ - spec/pre_spec.rb
95
+ - spec/watir_compatability_spec.rb
96
+ - spec/table_header_spec.rb
97
+ - spec/maps_spec.rb
98
+ - spec/option_spec.rb
99
+ - spec/select_lists_spec.rb
100
+ - spec/element_spec.rb
101
+ - spec/radios_spec.rb
102
+ - spec/frame_spec.rb
103
+ - spec/pres_spec.rb
104
+ - spec/table_footer_spec.rb
105
+ - spec/filefields_spec.rb
106
+ - spec/text_fields_spec.rb
107
+ - spec/hidden_spec.rb
108
+ - spec/table_footers_spec.rb
109
+ - spec/ol_spec.rb
110
+ - spec/select_list_spec.rb
111
+ - spec/divs_spec.rb
112
+ - spec/lis_spec.rb
113
+ - spec/ols_spec.rb
114
+ - spec/hiddens_spec.rb
115
+ - spec/table_cells_spec.rb
116
+ - spec/li_spec.rb
117
+ - spec/link_spec.rb
118
+ - spec/image_spec.rb
119
+ - config/hoe.rb
120
+ - config/requirements.rb
31
121
  - README.txt
32
- - Rakefile
33
- - benchmark/bm_2000_spans.rb
34
- - benchmark/bm_digg.rb
35
- - benchmark/bm_google_images.rb
36
- - benchmark/bm_input_locator.rb
37
- - benchmark/loader.rb
38
- - lib/celerity.rb
39
- - lib/celerity/clickable_element.rb
122
+ - lib/celerity/input_element.rb
123
+ - lib/celerity/watir_compatibility.rb
40
124
  - lib/celerity/collections.rb
41
125
  - lib/celerity/container.rb
126
+ - lib/celerity/element_locator.rb
127
+ - lib/celerity/identifier.rb
128
+ - lib/celerity/version.rb
129
+ - lib/celerity/extra/method_generator.rb
130
+ - lib/celerity/non_control_elements.rb
131
+ - lib/celerity/exception.rb
132
+ - lib/celerity/clickable_element.rb
42
133
  - lib/celerity/disabled_element.rb
43
- - lib/celerity/element.rb
134
+ - lib/celerity/ie.rb
44
135
  - lib/celerity/element_collections.rb
45
- - lib/celerity/element_locator.rb
46
- - lib/celerity/elements/button.rb
47
- - lib/celerity/elements/file_field.rb
48
- - lib/celerity/elements/form.rb
136
+ - lib/celerity/elements/option.rb
49
137
  - lib/celerity/elements/frame.rb
138
+ - lib/celerity/elements/select_list.rb
139
+ - lib/celerity/elements/link.rb
140
+ - lib/celerity/elements/table_header.rb
50
141
  - lib/celerity/elements/image.rb
51
142
  - lib/celerity/elements/label.rb
52
- - lib/celerity/elements/link.rb
53
- - lib/celerity/elements/option.rb
54
- - lib/celerity/elements/radio_check.rb
55
- - lib/celerity/elements/select_list.rb
56
- - lib/celerity/elements/table.rb
57
- - lib/celerity/elements/table_body.rb
58
143
  - lib/celerity/elements/table_cell.rb
144
+ - lib/celerity/elements/table_footer.rb
145
+ - lib/celerity/elements/table.rb
146
+ - lib/celerity/elements/button.rb
59
147
  - lib/celerity/elements/table_row.rb
148
+ - lib/celerity/elements/form.rb
149
+ - lib/celerity/elements/table_body.rb
150
+ - lib/celerity/elements/radio_check.rb
151
+ - lib/celerity/elements/file_field.rb
60
152
  - lib/celerity/elements/text_field.rb
61
- - lib/celerity/exception.rb
62
- - lib/celerity/extra/method_generator.rb
153
+ - lib/celerity/htmlunit/xml-apis-1.0.b2.jar
154
+ - lib/celerity/htmlunit/sac-1.3.jar
155
+ - lib/celerity/htmlunit/cssparser-0.9.5.jar
156
+ - lib/celerity/htmlunit/nekohtml-1.9.7.jar
157
+ - lib/celerity/htmlunit/commons-logging-1.1.1.jar
63
158
  - lib/celerity/htmlunit/commons-codec-1.3.jar
159
+ - lib/celerity/htmlunit/js-1.7R1.jar
64
160
  - lib/celerity/htmlunit/commons-collections-3.2.jar
161
+ - lib/celerity/htmlunit/xercesImpl-2.8.1.jar
162
+ - lib/celerity/htmlunit/xalan-2.7.0.jar
65
163
  - lib/celerity/htmlunit/commons-httpclient-3.1.jar
164
+ - lib/celerity/htmlunit/htmlunit-2.2-SNAPSHOT.jar
66
165
  - lib/celerity/htmlunit/commons-io-1.4.jar
67
166
  - lib/celerity/htmlunit/commons-lang-2.4.jar
68
- - lib/celerity/htmlunit/commons-logging-1.1.1.jar
69
- - lib/celerity/htmlunit/cssparser-0.9.5.jar
70
- - lib/celerity/htmlunit/htmlunit-2.2-SNAPSHOT.jar
71
- - lib/celerity/htmlunit/js-1.7R1.jar
72
- - lib/celerity/htmlunit/nekohtml-1.9.7.jar
73
- - lib/celerity/htmlunit/sac-1.3.jar
74
- - lib/celerity/htmlunit/xalan-2.7.0.jar
75
- - lib/celerity/htmlunit/xercesImpl-2.8.1.jar
76
- - lib/celerity/htmlunit/xml-apis-1.0.b2.jar
77
- - lib/celerity/identifier.rb
78
- - lib/celerity/ie.rb
79
- - lib/celerity/input_element.rb
80
- - lib/celerity/non_control_elements.rb
81
- - lib/celerity/version.rb
167
+ - lib/celerity/element.rb
168
+ - lib/celerity.rb
169
+ - support/spec_server.rb
170
+ - support/celerity_viewer/rubycocoa/CelerityViewer.icns
171
+ - support/celerity_viewer/rubycocoa/distributed_viewer.rb
172
+ - support/celerity_viewer/rubycocoa/README
173
+ - support/celerity_viewer/rubycocoa/English.lproj
174
+ - support/celerity_viewer/rubycocoa/English.lproj/Main.nib
175
+ - support/celerity_viewer/rubycocoa/English.lproj/Main.nib/info.nib
176
+ - support/celerity_viewer/rubycocoa/English.lproj/Main.nib/classes.nib
177
+ - support/celerity_viewer/rubycocoa/English.lproj/Main.nib/keyedobjects.nib
178
+ - support/celerity_viewer/rubycocoa/MainController.rb
179
+ - support/celerity_viewer/rubycocoa/main.m
180
+ - support/celerity_viewer/rubycocoa/Rakefile
181
+ - support/celerity_viewer/rubycocoa/Info.plist.erb
182
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app
183
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app/Contents
184
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app/Contents/MacOS
185
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app/Contents/Resources
186
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app/Contents/Resources/English.lproj
187
+ - support/celerity_viewer/rubycocoa/CelerityViewer.app/Contents/Resources/English.lproj/Main.nib
188
+ - support/celerity_viewer/rubycocoa/main.rb
189
+ - Manifest.txt
82
190
  - setup.rb
83
- - spec/area_spec.rb
84
- - spec/areas_spec.rb
85
- - spec/button_spec.rb
86
- - spec/buttons_spec.rb
87
- - spec/checkbox_spec.rb
88
- - spec/checkboxes_spec.rb
89
- - spec/div_spec.rb
90
- - spec/divs_spec.rb
91
- - spec/element_spec.rb
92
- - spec/filefield_spec.rb
93
- - spec/filefields_spec.rb
94
- - spec/form_spec.rb
95
- - spec/forms_spec.rb
96
- - spec/frame_spec.rb
97
- - spec/hidden_spec.rb
98
- - spec/hiddens_spec.rb
99
- - spec/html/2000_spans.html
100
- - spec/html/forms_with_input_elements.html
101
- - spec/html/frame_1.html
102
- - spec/html/frame_2.html
103
- - spec/html/frames.html
104
- - spec/html/iframes.html
105
- - spec/html/images.html
106
- - spec/html/images/1.gif
107
- - spec/html/images/2.gif
108
- - spec/html/images/3.gif
109
- - spec/html/images/button.jpg
110
- - spec/html/images/circle.jpg
111
- - spec/html/images/map.gif
112
- - spec/html/images/map2.gif
113
- - spec/html/images/minus.gif
114
- - spec/html/images/originaltriangle.jpg
115
- - spec/html/images/plus.gif
116
- - spec/html/images/square.jpg
117
- - spec/html/images/triangle.jpg
118
- - spec/html/non_control_elements.html
119
- - spec/html/tables.html
120
- - spec/ie_spec.rb
121
- - spec/image_spec.rb
122
- - spec/images_spec.rb
123
- - spec/label_spec.rb
124
- - spec/labels_spec.rb
125
- - spec/li_spec.rb
126
- - spec/link_spec.rb
127
- - spec/links_spec.rb
128
- - spec/lis_spec.rb
129
- - spec/map_spec.rb
130
- - spec/maps_spec.rb
131
- - spec/p_spec.rb
132
- - spec/pre_spec.rb
133
- - spec/pres_spec.rb
134
- - spec/ps_spec.rb
135
- - spec/radio_spec.rb
136
- - spec/radios_spec.rb
137
- - spec/select_list_spec.rb
138
- - spec/select_lists_spec.rb
139
- - spec/span_spec.rb
140
- - spec/spans_spec.rb
141
- - spec/spec.opts
142
- - spec/spec_helper.rb
143
- - spec/table_bodies.rb
144
- - spec/table_bodies_spec.rb
145
- - spec/table_body_spec.rb
146
- - spec/table_cell_spec.rb
147
- - spec/table_cells_spec.rb
148
- - spec/table_row_spec.rb
149
- - spec/table_rows_spec.rb
150
- - spec/table_spec.rb
151
- - spec/tables_spec.rb
152
- - spec/text_field_spec.rb
153
- - spec/text_fields_spec.rb
191
+ - License.txt
192
+ - tasks/simple_ci.rake
193
+ - tasks/rdoc.rake
194
+ - tasks/specserver.rake
195
+ - tasks/benchmark.rake
154
196
  - tasks/environment.rake
155
197
  - tasks/rspec.rake
156
- - tasks/testserver.rake
157
- - tasks/benchmark.rake
198
+ - benchmark/bm_input_locator.rb
199
+ - benchmark/loader.rb
200
+ - benchmark/bm_2000_spans.rb
201
+ - benchmark/bm_digg.rb
202
+ - benchmark/bm_google_images.rb
203
+ - Rakefile
158
204
  has_rdoc: true
159
205
  homepage: http://celerity.rubyforge.org
160
206
  post_install_message:
@@ -181,6 +227,6 @@ rubyforge_project: celerity
181
227
  rubygems_version: 1.1.1
182
228
  signing_key:
183
229
  specification_version: 2
184
- summary: Celerity is a JRuby wrapper around the HtmlUnit Java library (http://htmlunit.sourceforge.net/). The goal of the project is to duplicate the Watir API (http://wtf.rubyforge.org/) using HtmlUnit as the underlying engine.
230
+ summary: Celerity is a JRuby library for easy and fast functional test automation for web applications. It is a wrapper around the HtmlUnit Java library and is currently aimed at providing the same API and functionality as Watir.
185
231
  test_files: []
186
232
 
@@ -1,40 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
2
-
3
- describe "TableBody" do
4
-
5
- before :all do
6
- @browser = IE.new
7
- add_spec_checker(@browser)
8
- end
9
-
10
- before :each do
11
- @browser = IE.new
12
- @browser.goto(TEST_HOST + "/tables.html")
13
- end
14
-
15
- describe "#length" do
16
- it "should return the number of table bodies" do
17
- @browser.table(:index, 1).bodies.length.should == 2
18
- @browser.table(:index, 2).bodies.length.should == 0
19
- end
20
- end
21
-
22
- describe "#[]n" do
23
- it "should return the nth table body" do
24
- pending
25
- end
26
- end
27
-
28
- describe "#each" do
29
- it "should iterate through table bodies correctly" do
30
- #@browser.table(:index, 1).bodies.each_with_index do |body, index|
31
- #end
32
- pending
33
- end
34
- end
35
-
36
- after :all do
37
- @browser.close
38
- end
39
-
40
- end