Sha256: b46c21c5390a2b23d67f8e6ebeb49db18f92d182562ed19951ba98d33fdc9a95

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# encoding: utf-8

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

class TC_Fields_For_Chinese_Char < Test::Unit::TestCase
  
  def setup()
    goto_page "textfields1.html"                 
  end
  
  def test_chinese_char_should_be_appended_to_text_field
    browser.text_field(:name, "text1").append(" ijij")
    assert_equal(  "Hello World ijij" , browser.text_field(:name, "text1").value )  
  end
  
  def test_mixed_char_should_be_appended_to_text_field
    browser.text_field(:name, "text1").append(" ijaija")
    assert_equal(  "Hello World ijaija" , browser.text_field(:name, "text1").value )  
  end
  
  def test_chinese_char_should_be_set_to_text_field
    browser.text_field(:name, "text1").set("ijij")
    assert_equal(  "ijij" , browser.text_field(:name, "text1").value )  
  end
  
  def test_mixed_char_should_be_set_to_text_field
    browser.text_field(:name, "text1").set("ijaija")
    assert_equal(  "ijaija" , browser.text_field(:name, "text1").value )  
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.5 unittests/textfield_for_ch_char_test.rb