watir-webdriver-performance 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-version +1 -1
- data/VERSION +1 -1
- data/lib/watir-webdriver-performance.rb +3 -1
- data/watir-webdriver-performance.gemspec +2 -2
- metadata +3 -3
data/.rbenv-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-
|
1
|
+
1.9.3-p484
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'ostruct'
|
2
|
+
require 'json'
|
3
|
+
|
2
4
|
module Watir
|
3
5
|
|
4
6
|
# Adds helper for window.performance to Watir::Browser.
|
@@ -88,7 +90,7 @@ module Watir
|
|
88
90
|
def performance
|
89
91
|
data = case driver.browser
|
90
92
|
when :internet_explorer
|
91
|
-
|
93
|
+
JSON.parse(driver.execute_script("return JSON.stringify(window.performance.toJSON());"))
|
92
94
|
else
|
93
95
|
driver.execute_script("return window.performance || window.webkitPerformance || window.mozPerformance || window.msPerformance;")
|
94
96
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "watir-webdriver-performance"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tim Koopmans"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-01-29"
|
13
13
|
s.description = "This gem collects and summarises metrics speficied in the W3C Navigation web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/ when using watir-webdriver and a compatible browser"
|
14
14
|
s.email = "tim.koops@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-webdriver-performance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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:
|
12
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: watir-webdriver
|
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash:
|
232
|
+
hash: -3125450726429857268
|
233
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
234
|
none: false
|
235
235
|
requirements:
|