Sha256: 60d84d2e3c9f91734c9de780863c2a0182424fb3ec54278947f536e28ce7bcf1

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

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

class TC_DocumentStandards_Quirks < Test::Unit::TestCase
  include Watir::Exception
  
  def setup
    goto_page 'quirks_document_standards.html'
  end

  def test_elements_exist_or_not
    assert(browser.text_field(:name,"quirks_text").exists?)
    browser.text_field(:name,"quirks_text").set "test"
    browser.text_field(:name,"quirks_text").fire_event "onClick"
    assert(browser.text_field(:name,"quirks_text").value == 'test')
  end
end

class TC_DocumentStandards_IE7 < Test::Unit::TestCase
  include Watir::Exception
  
  def setup
    goto_page 'ie7_document_standards.html'
  end

  def test_elements_exist_or_not
    assert(browser.text_field(:name,"ie7_text").exists?)
    browser.text_field(:name,"ie7_text").set "test"
    browser.text_field(:name,"ie7_text").fire_event "onClick"
    assert(browser.text_field(:name,"ie7_text").value == 'test')
  end
end

class TC_DocumentStandards_IE8 < Test::Unit::TestCase
  include Watir::Exception

  def setup
    goto_page 'ie8_document_standards.html'
  end

  def test_elements_exist_or_not
    assert(browser.text_field(:name,"ie8_text").exists?)
    browser.text_field(:name,"ie8_text").set "test"
    browser.text_field(:name,"ie8_text").fire_event "onClick"
    assert(browser.text_field(:name,"ie8_text").value == 'test')
  end
end

class TC_DocumentStandards_IE9 < Test::Unit::TestCase
  include Watir::Exception

  def setup
    goto_page 'ie9_document_standards.html'
  end

  def test_elements_exist_or_not
    assert(browser.text_field(:name,"ie9_text").exists?)
    browser.text_field(:name,"ie9_text").set "test"
    browser.text_field(:name,"ie9_text").fire_event "onClick"
    assert(browser.text_field(:name,"ie9_text").value == 'test')
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/document_standards.rb
watir-3.0.0.rc3 unittests/document_standards.rb