Navigation Menu

Skip to content

Commit

Permalink
Follow chupa-text change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 17, 2014
1 parent 75993d1 commit 1063686
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test-html.rb
@@ -1,4 +1,4 @@
# Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
# Copyright (C) 2013-2014 Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_nothing
<body>Hello</body>
</html>
HTML
assert_equal(["US-ASCII"], decompose(@data))
assert_equal([Encoding::US_ASCII], decompose(@data))
end

def test_xml_declaration
Expand All @@ -155,7 +155,7 @@ def test_xml_declaration
<body>Hello</body>
</html>
XHTML
assert_equal(["Shift_JIS"], decompose(@data))
assert_equal([Encoding::Shift_JIS], decompose(@data))
end

def test_content_type
Expand All @@ -167,7 +167,7 @@ def test_content_type
<body>Hello</body>
</html>
HTML
assert_equal(["EUC-JP"], decompose(@data))
assert_equal([Encoding::EUC_JP], decompose(@data))
end

def test_meta_charset
Expand All @@ -179,7 +179,7 @@ def test_meta_charset
<body>Hello</body>
</html>
HTML5
assert_equal(["EUC-JP"], decompose(@data))
assert_equal([Encoding::EUC_JP], decompose(@data))
end
end

Expand All @@ -197,15 +197,15 @@ def decompose(charset)
end

def test_x_sjis
assert_equal(["Windows-31J"], decompose("x-sjis"))
assert_equal([Encoding::WINDOWS_31J], decompose("x-sjis"))
end

def test_shift_jis_hyphen
assert_equal(["Windows-31J"], decompose("Shift-JIS"))
assert_equal([Encoding::WINDOWS_31J], decompose("Shift-JIS"))
end

def test_shift_jis_under_score
assert_equal(["Windows-31J"], decompose("Shift_JIS"))
assert_equal([Encoding::WINDOWS_31J], decompose("Shift_JIS"))
end
end
end
Expand Down

0 comments on commit 1063686

Please sign in to comment.