watirspec 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +8 -0
- data/lib/watirspec/html_formatter.rb +13 -8
- data/lib/watirspec/version.rb +1 -1
- data/watirspec-0.1.6.gem +0 -0
- metadata +5 -5
- data/coverage.data +0 -0
data/History.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== Version 0.1.7 / 2010-04-15
|
2
|
+
|
3
|
+
* minor fix
|
4
|
+
|
5
|
+
=== Version 0.1.6 / 2010-04-08
|
6
|
+
|
7
|
+
* browser was not closed when Watir::IE#run_error_checks throwed an exception
|
8
|
+
|
1
9
|
=== Version 0.1.5 / 2010-04-08
|
2
10
|
|
3
11
|
* fixed a problem where HtmlFormatter threw an ugly exception due to the problem when browser was not opened
|
@@ -85,14 +85,19 @@ module WatiRspec
|
|
85
85
|
|
86
86
|
def save_javascript_error # :nodoc:
|
87
87
|
file_name = nil
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
88
|
+
begin
|
89
|
+
if @browser.is_a?(Watir::IE) && @browser.status =~ /Error on page/
|
90
|
+
autoit = Watir::autoit
|
91
|
+
autoit.AutoItSetOption("MouseCoordMode", 0)
|
92
|
+
autoit.ControlClick("[TITLE:#{@browser.title}]", "", "[CLASS:msctls_statusbar32]", "left", 2)
|
93
|
+
popup_title = "[REGEXPTITLE:^(Windows )?Internet Explorer$]"
|
94
|
+
autoit.WinWait(popup_title, "", 10)
|
95
|
+
file_name = save_screenshot("JS_Error", autoit.WinGetHandle(popup_title).hex)
|
96
|
+
autoit.WinClose(popup_title)
|
97
|
+
end
|
98
|
+
rescue => e
|
99
|
+
$stderr.puts "saving of javascript error failed: #{e.message}"
|
100
|
+
$stderr.puts e.backtrace
|
96
101
|
end
|
97
102
|
file_name
|
98
103
|
end
|
data/lib/watirspec/version.rb
CHANGED
data/watirspec-0.1.6.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 7
|
9
|
+
version: 0.1.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jarmo Pertman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-16 00:00:00 +03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -130,7 +130,6 @@ extra_rdoc_files:
|
|
130
130
|
- License.txt
|
131
131
|
files:
|
132
132
|
- bin/watirspec
|
133
|
-
- coverage.data
|
134
133
|
- History.rdoc
|
135
134
|
- lib/spec.opts
|
136
135
|
- lib/watirspec/autoit.rb
|
@@ -166,6 +165,7 @@ files:
|
|
166
165
|
- watirspec-0.1.3.gem
|
167
166
|
- watirspec-0.1.4.gem
|
168
167
|
- watirspec-0.1.5.gem
|
168
|
+
- watirspec-0.1.6.gem
|
169
169
|
has_rdoc: true
|
170
170
|
homepage: http://github.com/jarmo/WatiRspec
|
171
171
|
licenses: []
|
@@ -207,6 +207,6 @@ rubyforge_project:
|
|
207
207
|
rubygems_version: 1.3.6
|
208
208
|
signing_key:
|
209
209
|
specification_version: 3
|
210
|
-
summary: watirspec 0.1.
|
210
|
+
summary: watirspec 0.1.7
|
211
211
|
test_files: []
|
212
212
|
|
data/coverage.data
DELETED
Binary file
|