Sha256: 11a757a879047198a2b2b3a8931b093c69291bd275a28f72166a850f2585cc1b

Contents?: true

Size: 1.05 KB

Versions: 36

Compression:

Stored size: 1.05 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

36 entries across 36 versions & 2 rubygems

Version Path
watir-1.9.0.rc4 unittests/textfield_for_ch_char_test.rb
watir-1.9.0.rc3 unittests/textfield_for_ch_char_test.rb
watir-1.9.0.rc2 unittests/textfield_for_ch_char_test.rb
watir-1.9.0.rc1 unittests/textfield_for_ch_char_test.rb
watir-1.8.1 unittests/textfield_for_ch_char_test.rb
watir-1.8.1.rc1 unittests/textfield_for_ch_char_test.rb
watir-1.8.0 unittests/textfield_for_ch_char_test.rb
watir-1.8.0.rc1 unittests/textfield_for_ch_char_test.rb
watir-1.7.1 unittests/textfield_for_ch_char_test.rb
watir-1.7.0 unittests/textfield_for_ch_char_test.rb
watir-1.7.0.rc1 unittests/textfield_for_ch_char_test.rb
watir-1.6.7 unittests/textfield_for_ch_char_test.rb
watir-1.6.7.rc1 unittests/textfield_for_ch_char_test.rb
watir-1.6.6 unittests/textfield_for_ch_char_test.rb
watir-1.6.6.rc2 unittests/textfield_for_ch_char_test.rb
watir-1.6.6.rc1 unittests/textfield_for_ch_char_test.rb