watir-dom-wait 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Watir
2
2
  module Dom
3
3
  module Wait
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end # Wait
6
6
  end # Dom
7
7
  end # Watir
@@ -6,7 +6,7 @@ module Watir
6
6
  module Dom
7
7
  module Wait
8
8
 
9
- JAVASCRIPT = File.read("lib/watir/dom/extensions/js/waitForDom.js")
9
+ JAVASCRIPT = File.read("#{File.dirname(__FILE__)}/extensions/js/waitForDom.js")
10
10
  DOM_READY = "return watir.domReady;"
11
11
 
12
12
  end # Wait
@@ -48,6 +48,13 @@ describe Watir::Element do
48
48
  @browser.div.when_dom_changed(:timeout => 2) { |div| div.spans }
49
49
  end.should raise_error(Watir::Wait::TimeoutError)
50
50
  end
51
+
52
+ it "returns block evaluation" do
53
+ @browser.button(:id, "quick").click
54
+ @browser.div.when_dom_changed do |div|
55
+ div.spans.size
56
+ end.should == 20
57
+ end
51
58
  end
52
59
  end
53
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-dom-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-27 00:00:00.000000000 Z
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: 2355813797107009921
114
+ hash: 2619071256404589922
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 2355813797107009921
123
+ hash: 2619071256404589922
124
124
  requirements: []
125
125
  rubyforge_project:
126
126
  rubygems_version: 1.8.23