performance_tester 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,15 @@ module PerformanceTester
29
29
  browser.run_server = false
30
30
  browser.current_driver = :poltergeist
31
31
  browser.register_driver :poltergeist do |app|
32
- driver.new(app, :debug => false)
32
+ phantomjs_options = []
33
+ unless load_images?
34
+ phantomjs_options << "--load-images=no"
35
+ end
36
+ driver_options = {
37
+ :debug => false,
38
+ :phantomjs_options => phantomjs_options
39
+ }
40
+ driver.new(app, driver_options)
33
41
  end
34
42
  end
35
43
 
@@ -68,6 +76,10 @@ module PerformanceTester
68
76
  options.fetch(:loggers) { {} }
69
77
  end
70
78
 
79
+ def load_images?
80
+ options.fetch(:load_images) { true }
81
+ end
82
+
71
83
  def outcome
72
84
  options.fetch(:outcome) { Outcome }
73
85
  end
@@ -1,3 +1,3 @@
1
1
  module PerformanceTester
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: performance_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: poltergeist