commonwatir 1.8.0.rc1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,4 +1,4 @@
1
- == Version X.X.X - 2011/XX/XX
1
+ == Version 1.8.0 - 2011/28/02
2
2
 
3
3
  === IE improvements
4
4
 
@@ -9,6 +9,7 @@
9
9
 
10
10
  * Removed dependency for ActiveSupport, making it possible to use FireWatir with Rails 3 (Jarmo Pertman)
11
11
  * Removed :waitTime option and try to handle better firefox startup (Jarmo Pertman)
12
+ * Added #exists? with alias #exist? to FireWatir::Firefox browser object (Jarmo Pertman)
12
13
 
13
14
  == Version 1.7.1 - 2011/01/10
14
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0.rc1
1
+ 1.8.0
@@ -15,4 +15,24 @@ class TC_Browser < Test::Unit::TestCase
15
15
 
16
16
  end
17
17
 
18
+ class TC_Browser_Exists < Test::Unit::TestCase
19
+ def setup
20
+ @browser = Watir::Browser.new
21
+ @browser.goto self.class.html_root + "blankpage.html"
22
+ end
23
+
24
+ def teardown
25
+ @browser.close if @browser.exists?
26
+ end
27
+
28
+ def test_exists
29
+ assert @browser.exists?
30
+ end
31
+
32
+ def test_not_exists
33
+ @browser.close
34
+ assert_false @browser.exists?
35
+ end
36
+ end
37
+
18
38
 
@@ -12,7 +12,8 @@ module Watir::UnitTest
12
12
  browser.goto new_url unless browser.url == new_url
13
13
  end
14
14
  def browser
15
- $browser
15
+ return $browser if $browser && $browser.exists?
16
+ $browser = Watir::Browser.new
16
17
  end
17
18
 
18
19
  def assert_class element, klass
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonwatir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940510
5
- prerelease: true
4
+ hash: 55
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
9
  - 0
10
- - rc1
11
- version: 1.8.0.rc1
10
+ version: 1.8.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Bret Pettichord
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-02-25 00:00:00 -07:00
18
+ date: 2011-02-28 00:00:00 -07:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -124,14 +123,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
123
  required_rubygems_version: !ruby/object:Gem::Requirement
125
124
  none: false
126
125
  requirements:
127
- - - ">"
126
+ - - ">="
128
127
  - !ruby/object:Gem::Version
129
- hash: 25
128
+ hash: 3
130
129
  segments:
131
- - 1
132
- - 3
133
- - 1
134
- version: 1.3.1
130
+ - 0
131
+ version: "0"
135
132
  requirements: []
136
133
 
137
134
  rubyforge_project: wtr