$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