diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-15 11:47:34 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-15 11:47:34 +0000 |
commit | 64f9f1ba5884975ba91abcdb7697988ba0ba64bf () | |
tree | 651e863cc9c4d7cfcdfc4c4f95a89dae00656318 | |
parent | a38971c595a6a5ee6f4cf0b2c066311a4694a59c (diff) |
* test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest): Group tests by general entity and parameter entity. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/rexml/test_document.rb | 14 |
2 files changed, 15 insertions, 5 deletions
@@ -1,3 +1,9 @@ Sat Nov 15 20:43:31 2014 Kouhei Sutou <[email protected]> * test/rexml/test_document.rb @@ -41,7 +41,8 @@ EOF REXML::Security.entity_expansion_limit = @default_entity_expansion_limit end - def test_general_entity_have_value xml = <<EOF <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE member [ @@ -71,7 +72,7 @@ EOF assert_equal(101, doc.entity_expansion_count) end - def test_general_entity_empty_value xml = <<EOF <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE member [ @@ -101,7 +102,7 @@ EOF assert_equal(101, doc.entity_expansion_count) end - def test_general_entity_with_default_entity xml = <<EOF <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE member [ @@ -124,8 +125,10 @@ EOF doc.root.children.first.value end end - def test_parameter_entity_have_value xml = <<EOF <!DOCTYPE root [ <!ENTITY % a "BOOM.BOOM.BOOM.BOOM.BOOM.BOOM.BOOM.BOOM.BOOM."> @@ -150,7 +153,7 @@ EOF end end - def test_parameter_entity_empty_value xml = <<EOF <!DOCTYPE root [ <!ENTITY % a ""> @@ -175,6 +178,7 @@ EOF end end end def test_tag_in_cdata_with_not_ascii_only_but_ascii8bit_encoding_source tag = "<b>...</b>" |