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