Sha256: c68fa55249f90ea3b2a03550784c63c2595e8cc62d32ed1c095663298dcd892c

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
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
    $ie.text_field(:name, "text1").append(" ijij")
    assert_equal(  "Hello World ijij" , $ie.text_field(:name, "text1").getContents )  
  end
  
  def test_mixed_char_should_be_appended_to_text_field
    $ie.text_field(:name, "text1").append(" ijaija")
    assert_equal(  "Hello World ijaija" , $ie.text_field(:name, "text1").getContents )  
  end
  
  def test_chinese_char_should_be_set_to_text_field
    $ie.text_field(:name, "text1").set("ijij")
    assert_equal(  "ijij" , $ie.text_field(:name, "text1").getContents )  
  end
  
  def test_mixed_char_should_be_set_to_text_field
    $ie.text_field(:name, "text1").set("ijaija")
    assert_equal(  "ijaija" , $ie.text_field(:name, "text1").getContents )  
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-1.5.5 unittests/textfield_for_ch_char_test.rb
watir-1.5.6 unittests/textfield_for_ch_char_test.rb