aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/rexml/parse/test_notation_declaration.rb (#test_system_public):kou2013-08-101-0/+9
| | | | | | | 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
* * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC):kou2013-08-101-0/+11
| | | | | | | | | | | Fix loose "head" match regular expression. [Bug #8701] [ruby-dev:47551] Patch by Ippei Obayashi. Thanks!!! * test/rexml/parse/test_notation_declaration.rb (#test_system_public): Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parse/test_notation_declaration.rb: Change classkou2013-07-311-1/+1
| | | | | | | name to follow file name change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Rename to ...kou2013-07-311-0/+0
| | | | | | | * test/rexml/parse/test_notation_declaration.rb: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_mixin.rb: Remove duplicated tests.kou2013-07-311-51/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Fix typos in expectedkou2013-07-311-2/+2
| | | | | | | | | | value. pubilc -> public ^^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Add tests that focuskou2013-07-311-0/+16
| | | | | | | system literal in external ID system notation declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Fix a typo.kou2013-07-311-1/+1
| | | | | | | | | Extern ID -> ExternalID ^^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Add tests that focuskou2013-07-311-0/+16
| | | | | | | public ID in external ID notation declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Split test patterns.kou2013-07-311-7/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Group tests.kou2013-07-311-14/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):kou2013-07-312-4/+5
| | | | | | | | | Move to ... * test/rexml/test_notationdecl_parsetest.rb (TestNotationDecl#test_name): ... here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: Remove setup because itkou2013-07-311-10/+16
| | | | | | | doesn't share anything with other tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_attributes_mixin.rb: Remove a needless shebang.kou2013-07-315-11/+0
| | | | | | | | | | * test/rexml/test_notationdecl_mixin.rb: ditto. * test/rexml/test_doctype.rb: ditto. * test/rexml/test_xml_declaration.rb: ditto. * test/rexml/test_changing_encoding.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_notationdecl_parsetest.rb: remove a needless shebang.kou2013-07-311-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/streamparser.rbkou2013-07-261-0/+23
| | | | | | | | | | | (REXML::Parsers::StreamParser#parse): Add "entity" event support to listener. [Bug #8689] [ruby-dev:47542] Reported by Ippei Obayashi. * test/rexml/test_stream.rb (StreamTester#entity): Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_text.rb: Add missing tests for Text#<<.kou2013-07-091-0/+19
| | | | | | | Reported by nagachika. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb (REXML::Text.normalize): Fix a bug that allkou2013-04-261-0/+20
| | | | | | | | | | entity filters are ignored. [ruby-dev:47278] [Bug #8302] Patch by Ippei Obayashi. Thanks!!! * test/rexml/test_entity.rb (EntityTester#test_entity_filter): Add a test of the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/element.rb (REXML::Attributes#to_a): Supportkou2013-04-261-0/+22
| | | | | | | | | | | namespaced attributes. [ruby-dev:47277] [Bug #8301] Patch by Ippei Obayashi. Thanks!!! * test/rexml/test_attributes.rb (AttributesTester#test_to_a_with_namespaces): Add a test of the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_features.rb, test/logger/test_logger.rbakr2013-04-201-8/+8
| | | | | | | | | | | | | | | | | | test/mkmf/test_have_macro.rb, test/net/http/test_http.rb, test/openssl/test_config.rb, test/psych/test_encoding.rb, test/psych/test_exception.rb, test/psych/test_psych.rb, test/psych/test_tainted.rb, test/readline/test_readline.rb, test/rexml/test_contrib.rb, test/ruby/test_autoload.rb, test/ruby/test_beginendblock.rb, test/ruby/test_exception.rb, test/ruby/test_file.rb, test/ruby/test_io.rb, test/ruby/test_marshal.rb, test/ruby/test_process.rb, test/ruby/test_require.rb, test/ruby/test_rubyoptions.rb, test/syslog/test_syslog_logger.rb, test/webrick/test_httpauth.rb, test/zlib/test_zlib.rb: Use Tempfile.create. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/security.rb (REXML::Security): create.kou2013-02-271-5/+5
| | | | | | | | | | | | * lib/rexml/rexml.rb: move entity_expansion_limit and entity_expansion_text_limit accessors to ... * lib/rexml/security.rb: ... here. * lib/rexml/document.rb: use REXML::Security. * lib/rexml/text.rb: use REXML::Security. * test/rexml/test_document.rb: use REXML::Security. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use require_relative to require local librarynaruse2013-02-2413-17/+18
| | | | | | * from 1.9 require relative path from the file must use require_relative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):usa2013-02-221-0/+18
| | | | | | | | | | new attribute to read/write entity expansion text limit. the default limit is 10Kb. * lib/rexml/text.rb (REXML::Text.unnormalize): check above attribute. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: remove or replace trailing spacesnobu2012-12-071-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/output.rb (REXML::Output): Don't output BOM in middlekou2012-11-031-0/+19
| | | | | | | | of the output string. * test/rexml/test_document.rb: Add a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Fix tests that expect encoding namekou2012-11-031-6/+4
| | | | | | | isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r37439 and r37441kou2012-11-032-14/+2
| | | | | | | | | | | | | | | | | r37439: * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encoding module because XMLDecl doesn't convert encoding. This causes removing XML encoding name normalization (encoding.upcase). Encoding name in XML declaration is what user specifies. I think this is reasonable change. * test/rexml/test_xml_declaration.rb: Add tests for the above change. r37441: * test/rexml/test_core.rb (Tester#test_ticket_88): Follow the change that encoding name in XML declaration isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding.rb (EncodingTester#test_in_different_out):kou2012-11-031-2/+3
| | | | | | | | Fix a test that expects encoding in XML declaration is changed by Output's encoding. It is dropped feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_core.rb (Tester#test_ticket_88): Follow thekou2012-11-031-2/+2
| | | | | | | change that encoding name in XML declaration isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Document encodingkou2012-11-031-8/+18
| | | | | | | | | | | | option. Now different encoding between XML file's encoding and XML declaration's encodiong is support. [Feature #4872] (work in progress) * lib/rexml/xmldecl.rb (REXML::XMLDecl#write): Always use XMLDecl's encoding. * test/rexml/test_document.rb: Update tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encodingkou2012-11-031-0/+12
| | | | | | | | | | | module because XMLDecl doesn't convert encoding. This causes removing XML encoding name normalization (encoding.upcase). Encoding name in XML declaration is what user specifies. I think this is reasonable change. * test/rexml/test_xml_declaration.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_xml_declaration.rb (TestXmlDeclaration#test_*):kou2012-11-031-3/+4
| | | | | | | Remove needless prefix from test names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_xml_declaration_parent_child.rb: Rename to ...kou2012-11-031-0/+0
| | | | | | | * test/rexml/test_xml_declaration.rb: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Remove needless indent.kou2012-10-281-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Add tests for parsing XML encodedkou2012-10-281-0/+20
| | | | | | | by UTF-8 with BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb: Fix a bug that UTF-8 is usedkou2012-10-281-0/+22
| | | | | | | | | for UTF-16XX encoded XML that doesn't have encoding="UTF-16" in XML declration. * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Group tests that they parsekou2012-10-281-14/+16
| | | | | | | UTF-16XX encoded XML that has encoding="UTF-16" in XML declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Add tests for parsing XML encodedkou2012-10-281-0/+22
| | | | | | | by UTF-16 with BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Add :encoding optionkou2012-10-281-0/+22
| | | | | | | | | to support custom XML encoding. [Feature #4872] (work in progress) * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Accept optionskou2012-10-281-0/+95
| | | | | | | | Hash as argument. * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warnings.naruse2012-07-235-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2012-06-052-68/+68
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: fix test conditionsnobu2012-05-081-2/+5
| | | | | | | | | | | | | | * test/csv/test_features.rb (TestCSV#test_gzip_reader_bug_fix): test only if zlib is available. * test/csv/test_features.rb (TestCSV#test_gzip_writer_bug_fix): ditto. * test/open-uri/test_open-uri.rb (TestOpenURI#test_content_encoding): ditto. * test/rexml/test_order.rb (OrderTester#test_more_ordering): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:kou2012-02-021-0/+38
| | | | | | | | fix the default xml namespace URI validation. Reported by Miho Hiramatsu. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_order.rb (OrderTester#test_more_ordering): useusa2011-12-081-1/+1
| | | | | | | | | | GZip::GzReader.open instead of GZip::GzReader.new with File.new. fixed a test error on Windows introduced at r33946. * ChangeLog: mention the causes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_sax.rb: add require 'rexml/document.ayumin2011-09-261-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix test/rexml/test_encoding.rb failureayumin2011-09-071-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb, test/rexml/test_comment.rb:kou2011-09-071-0/+25
| | | | | | | | allow a single hyphen in comment. [Bug 5278] Reported by Thomas Fritzsche. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/formatters/pretty.rbkou2011-06-111-0/+61
| | | | | | | | | | | (REXML::Formatters::Pretty#write_text), test/rexml/test_core.rb (Tester#test_pretty_format_long_text_finite): don't ignore 'width' parameter in pretty formatter. fixes #4498 Reported by Michael Frasca. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_core.rbkou2011-06-111-3/+1
| | | | | | | | (Tester#test_pretty_format_long_text_finite): remove needless assert_nothing_raised. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e