Sha256: b9b38b16b62fc0921a65914c0576a0a545d3377eb5a2d0034831be693683a40b

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "WatirWebdriverPerformance-NonSupportedBrowser" do

  let!(:b) { @b }

  before(:all) do
    @b ||= Watir::Browser.new :safari
  end

  after(:all) do
    @b.close
  end

  pending "should raise an error when a non supported browser is encountered" do
    b.goto "google.com"
    lambda {  b.performance }.should raise_error RuntimeError, 'Could not collect performance metrics from your current browser. Please ensure the browser you are using supports collecting performance metrics.'
  end

  pending "should return false for supported" do
    b.goto "google.com"
    b.should_not be_performance_supported
  end

  pending "should not support performance as block" do
    b.goto "google.com"
    b.with_performance {|performance| performance.should be_nil }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-webdriver-performance-0.2.0 spec/watir-webdriver-performance-non-supported-browser_spec.rb