watir 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
@@ -404,11 +404,9 @@ module Watir
404
404
  @ie.quit
405
405
  t = Time.now
406
406
  while exists?
407
- # just in case to avoid possible endless loop
408
- if Time.now - t > 10
409
- puts "Impossible to close all IE windows, continuing."
410
- break
411
- end
407
+ # just in case to avoid possible endless loop if failing to close some
408
+ # window or tab
409
+ break if Time.now - t > 10
412
410
  sleep 0.3
413
411
  end
414
412
  end
@@ -3,12 +3,12 @@ require 'unittests/setup'
3
3
 
4
4
  class TC_CloseAllWindows < Watir::TestCase
5
5
 
6
- def xsetup
6
+ def setup
7
7
  @browsers = []
8
8
  5.times {@browsers << Watir::Browser.new}
9
9
  end
10
10
 
11
- def xtest_close_all_windows
11
+ def test_close_all_windows
12
12
  assert @browsers.all? {|browser| browser.exists?}
13
13
  Watir::IE.close_all
14
14
  assert @browsers.all? {|browser| not browser.exists?}
@@ -3,31 +3,14 @@
3
3
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
4
4
  require 'unittests/setup'
5
5
 
6
- class TC_IE_Exists < Test::Unit::TestCase
7
- tags :fails_on_firefox, :new
8
- def setup
9
- @ie = Watir::IE.new
10
- end
11
- def teardown
12
- @ie.close
13
- end
14
- def test_exists
15
- assert(@ie.exists?)
16
- end
17
- end
18
-
19
6
  class TC_IENotExists < Test::Unit::TestCase
20
- tags :fails_on_firefox, :new
21
7
  def setup
22
8
  @ie = Watir::IE.new
23
9
  end
24
- def test_we_closed_it
25
- @ie.close
26
- assert_false(@ie.exists?)
27
- end
10
+
28
11
  def test_some_one_else_closed_it
29
12
  @ie.ie.quit
30
13
  sleep 0.3 # give it some time to close
31
14
  assert_false(@ie.exists?)
32
15
  end
33
- end
16
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
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
@@ -59,13 +58,12 @@ dependencies:
59
58
  requirements:
60
59
  - - "="
61
60
  - !ruby/object:Gem::Version
62
- hash: 977940510
61
+ hash: 55
63
62
  segments:
64
63
  - 1
65
64
  - 8
66
65
  - 0
67
- - rc1
68
- version: 1.8.0.rc1
66
+ version: 1.8.0
69
67
  type: :runtime
70
68
  version_requirements: *id003
71
69
  - !ruby/object:Gem::Dependency
@@ -76,13 +74,12 @@ dependencies:
76
74
  requirements:
77
75
  - - "="
78
76
  - !ruby/object:Gem::Version
79
- hash: 977940510
77
+ hash: 55
80
78
  segments:
81
79
  - 1
82
80
  - 8
83
81
  - 0
84
- - rc1
85
- version: 1.8.0.rc1
82
+ version: 1.8.0
86
83
  type: :runtime
87
84
  version_requirements: *id004
88
85
  - !ruby/object:Gem::Dependency
@@ -335,14 +332,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
335
332
  required_rubygems_version: !ruby/object:Gem::Requirement
336
333
  none: false
337
334
  requirements:
338
- - - ">"
335
+ - - ">="
339
336
  - !ruby/object:Gem::Version
340
- hash: 25
337
+ hash: 3
341
338
  segments:
342
- - 1
343
- - 3
344
- - 1
345
- version: 1.3.1
339
+ - 0
340
+ version: "0"
346
341
  requirements:
347
342
  - Microsoft Windows running Internet Explorer 5.5 or later.
348
343
  rubyforge_project: Watir