mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rexml/parse/test_notation_declaration.rb (#test_system_public):
Add a test for PUBLIC notation and SYSTEM notation order case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6d18dd8e4d
commit
b729f2da30
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Aug 10 11:58:24 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* test/rexml/parse/test_notation_declaration.rb (#test_system_public):
|
||||||
|
Add a test for PUBLIC notation and SYSTEM notation order case.
|
||||||
|
|
||||||
Sat Aug 10 11:31:35 2013 Kouhei Sutou <kou@cozmixng.org>
|
Sat Aug 10 11:31:35 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC):
|
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC):
|
||||||
|
|
|
@ -83,6 +83,15 @@ class TestParseNotationDeclaration < Test::Unit::TestCase
|
||||||
assert_equal(["system-name", "public-name"],
|
assert_equal(["system-name", "public-name"],
|
||||||
doctype.notations.collect(&:name))
|
doctype.notations.collect(&:name))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_public_system
|
||||||
|
doctype = parse(<<-INTERNAL_SUBSET)
|
||||||
|
<!NOTATION public-name PUBLIC "public-id-literal" 'system-literal'>
|
||||||
|
<!NOTATION system-name SYSTEM "system-literal">
|
||||||
|
INTERNAL_SUBSET
|
||||||
|
assert_equal(["public-name", "system-name"],
|
||||||
|
doctype.notations.collect(&:name))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue