Sha256: 8a1543ac873783373cb3f9c3dd1d2b89e99d5861966007b6998a493d690b1915

Contents?: true

Size: 275 Bytes

Versions: 11

Compression:

Stored size: 275 Bytes

Contents

module WBench
  module Timings
    class Browser
      def initialize(browser)
        @browser = browser
      end

      def result
        timing_json = @browser.evaluate_script('window.performance.timing')

        TimingHash.new(timing_json)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wbench-0.3.7 lib/wbench/timings/browser.rb
wbench-0.3.6 lib/wbench/timings/browser.rb
wbench-0.3.5 lib/wbench/timings/browser.rb
wbench-0.3.4 lib/wbench/timings/browser.rb
wbench-0.3.3 lib/wbench/timings/browser.rb
wbench-0.3.2 lib/wbench/timings/browser.rb
wbench-0.3.1 lib/wbench/timings/browser.rb
wbench-0.3.0 lib/wbench/timings/browser.rb
wbench-0.2.3 lib/wbench/timings/browser.rb
wbench-0.2.2 lib/wbench/timings/browser.rb
wbench-0.2.1 lib/wbench/timings/browser.rb