Sha256: 9081c1be950e357f5164df83b2f0f77313c57f588ca0b2e667b3ef0646aacda8

Contents?: true

Size: 671 Bytes

Versions: 9

Compression:

Stored size: 671 Bytes

Contents

# feature tests for minimizing and maximizing IE windows

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'

class TC_MinMax< Test::Unit::TestCase
  tags :must_be_visible
  def setup
    goto_page 'pass.html'
  end        
  def teardown
    browser.restore
  end
  def test_minimimum
    browser.minimize
  end
  def test_maximum
    browser.maximize
  end
  def test_front
    assert browser.front?
    ie2 = Watir::IE.start($htmlRoot + 'blankpage.html')
    assert ie2.front?
    assert ! browser.front?
    browser.bring_to_front
    assert browser.front?
    ie2.close
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
watir-1.8.1 unittests/minmax_test.rb
watir-1.8.1.rc1 unittests/minmax_test.rb
watir-1.8.0 unittests/minmax_test.rb
watir-1.8.0.rc1 unittests/minmax_test.rb
watir-1.7.1 unittests/minmax_test.rb
watir-1.7.0 unittests/minmax_test.rb
watir-1.7.0.rc1 unittests/minmax_test.rb
watir-1.6.7 unittests/minmax_test.rb
watir-1.6.7.rc1 unittests/minmax_test.rb