Sha256: 4948deee7868bd9486e770ceadeaf30692184f6026c17e75711ce01195f6424d

Contents?: true

Size: 540 Bytes

Versions: 35

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8

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

class TC_Utf8 < Test::Unit::TestCase
  location __FILE__

  def setup
    uses_page "utf8.html"
  end 

  def test_is_correct_encoding
    txt = browser.div(:id, 'utf8_string').text
    if RUBY_VERSION =~ /^1\.8/
      assert_equal("\303\246\303\270\303\245", txt)
    else
      assert(txt.force_encoding("UTF-8").valid_encoding?, "#{txt.inspect} is not valid UTF-8")
    end
  end

end


Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
commonwatir-3.0.0.rc3 unittests/utf8_test.rb
commonwatir-3.0.0.rc2 unittests/utf8_test.rb
commonwatir-3.0.0.rc1 unittests/utf8_test.rb
commonwatir-2.0.4 unittests/utf8_test.rb
commonwatir-2.0.3 unittests/utf8_test.rb
commonwatir-2.0.2 unittests/utf8_test.rb
commonwatir-2.0.2.rc1 unittests/utf8_test.rb
commonwatir-2.0.1 unittests/utf8_test.rb
commonwatir-2.0.0 unittests/utf8_test.rb
commonwatir-2.0.0.rc3 unittests/utf8_test.rb
commonwatir-2.0.0.rc2 unittests/utf8_test.rb
commonwatir-1.9.2 unittests/utf8_test.rb
commonwatir-1.9.2.rc1 unittests/utf8_test.rb
commonwatir-1.9.1 unittests/utf8_test.rb
commonwatir-1.9.1.rc1 unittests/utf8_test.rb
commonwatir-1.9.0 unittests/utf8_test.rb
commonwatir-1.9.0.rc7 unittests/utf8_test.rb
commonwatir-1.9.0.rc6 unittests/utf8_test.rb
commonwatir-1.9.0.rc5 unittests/utf8_test.rb
commonwatir-1.9.0.rc4 unittests/utf8_test.rb