test-harness 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ui_component_helper.rb +12 -1
- data/test-harness.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.13
|
data/lib/ui_component_helper.rb
CHANGED
@@ -45,7 +45,18 @@ class TestHarness
|
|
45
45
|
until page.evaluate_script('jQuery.isReady&&jQuery.active==0') or (start_time + ajax_timeout) < Time.now do
|
46
46
|
sleep 1
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
|
+
return unless block_given?
|
50
|
+
|
51
|
+
# Now try to get the list of data few times until we either fail or timeout (2 seconds)
|
52
|
+
20.times.each do |index|
|
53
|
+
begin
|
54
|
+
return true if yield
|
55
|
+
rescue Exception => e
|
56
|
+
sleep 0.5
|
57
|
+
end
|
58
|
+
end
|
59
|
+
false
|
49
60
|
end
|
50
61
|
|
51
62
|
# Since Kernel#select is defined, we have to override it specifically here.
|
data/test-harness.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-harness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash: -
|
149
|
+
hash: -481034429231614389
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|