Sha256: d190fd89246a4b597ecc8112d84774a2a05bdbd38c291bdb81c771bd7e47d8fe

Contents?: true

Size: 579 Bytes

Versions: 28

Compression:

Stored size: 579 Bytes

Contents

require 'spec_helper'

describe Uia::Patterns::RangeValue do
  Given(:range_value) { Uia.find_element(id: /MainForm/).find(id: 'numericUpDown1').as :range_value }

  context 'properties' do
    Then { range_value.value == 0.0 }
    Then { range_value.minimum == 0.0 }
    Then { range_value.maximum == 100.0 }
    Then { range_value.small_change == 1.0 }
    Then { range_value.large_change == 0.0 }
    Then { range_value.read_only? == false }
  end

  context '#value=' do
    When { range_value.value = 37.3 }
    Then { range_value.value == 37.3 }
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
uia-1.0 spec/uia/patterns/range_value_spec.rb
uia-0.8 spec/uia/patterns/range_value_spec.rb
uia-0.7 spec/uia/patterns/range_value_spec.rb
uia-0.7.alpha.1 spec/uia/patterns/range_value_spec.rb
uia-0.6 spec/uia/patterns/range_value_spec.rb
uia-0.5 spec/uia/patterns/range_value_spec.rb
uia-0.4.4 spec/uia/patterns/range_value_spec.rb
uia-0.4.3 spec/uia/patterns/range_value_spec.rb
uia-0.4.2 spec/uia/patterns/range_value_spec.rb
uia-0.4.1 spec/uia/patterns/range_value_spec.rb
uia-0.4 spec/uia/patterns/range_value_spec.rb
uia-0.3.3 spec/uia/patterns/range_value_spec.rb
uia-0.3.2 spec/uia/patterns/range_value_spec.rb
uia-0.3.1 spec/uia/patterns/range_value_spec.rb
uia-0.3 spec/uia/patterns/range_value_spec.rb
uia-0.2.1 spec/uia/patterns/range_value_spec.rb
uia-0.2 spec/uia/patterns/range_value_spec.rb
uia-0.1.3.1 spec/uia/patterns/range_value_spec.rb
uia-0.1.3 spec/uia/patterns/range_value_spec.rb
uia-0.1.2.3 spec/uia/patterns/range_value_spec.rb