aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml
Commit message (Collapse)AuthorAgeFilesLines
* fix common misspelling [ci skip]nobu2015-12-241-1/+1
| | | | | | | * compile.c, cont.c, doc, man: fix common misspelling. [ruby-core:72466] [Bug #11870] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-1642-0/+42
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use assert_raisenobu2015-06-022-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Indent.kou2014-11-151-56/+56
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rbkou2014-11-151-5/+9
| | | | | | | | (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
* * test/rexml/test_document.rbkou2014-11-151-65/+65
| | | | | | | | | (REXMLTests::TestDocument::EntityExpansionLimitTest): Define test XML in each test method because (1) each XML in used only one test and (2) related data and code should be close. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rbkou2014-11-151-2/+8
| | | | | | | | (REXMLTests::TestDocument::EntityExpansionLimitTest): Use one test method for one test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rbkou2014-11-151-4/+8
| | | | | | | | (REXMLTests::TestDocument::EntityExpansionLimitTest): Use setup and teardown instead of ensure in test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rbkou2014-11-151-58/+58
| | | | | | | (REXMLTests::TestDocument::EntityExpansionLimitTest): Indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb (REXMLTests::TestDocument): Groupkou2014-11-151-0/+2
| | | | | | | entity expansion limit related tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb (REXMLTests::TestDocument::BomTest):kou2014-11-151-1/+1
| | | | | | | | Fix wrong parent class. It doesn't need inherit tests in TestDocument class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb: add REXML::Document#document.nagachika2014-11-131-0/+51
| | | | | | reported by Tomas Hoger <thoger@redhat.com> and patched by nahi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/entity.rb: keep the entity size within the limitation.usa2014-10-272-0/+43
| | | | | | | | reported by Willis Vandevanter <will@silentrobots.com> and patched by nahi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/source.rb (REXML::IOSource#encoding_updated): Fix akou2014-10-231-0/+9
| | | | | | | | | | | | | | | | bug that can't parse XML correctly when Encoding.default_internal is different with XML encoding. REXML::Source converts XML encoding on read. So IO should not convert XML encoding. Based on patch by NAKAMURA Usaku. [ruby-dev:48686] [Bug #10418] * test/rexml/test_encoding.rb (REXMLTests::EncodingTester#test_parse_utf16_with_utf8_default_internal): Add the for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding.rbkou2014-10-232-2/+2
| | | | | | | | | | | | | (REXMLTests::EncodingTester#test_parse_utf16): Use meaningful test name. "ticket" in the old test name means the ticket in REXML's issue tracker. The REXML's issue tracker was gone. So "ticket" is meaningless. * test/rexml/data/ticket_110_utf16.xml: Rename to ... * test/rexml/data/utf16.xml: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding.rbkou2014-10-231-1/+1
| | | | | | | | | (REXMLTests::EncodingTester#test_ticket_110): Fix expected and actual order. Patch by NAKAMURA Usaku. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Avoid a shadowing warning.akr2014-05-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml: Avoid fd leaks.akr2014-05-2710-113/+138
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Indent.kou2014-05-271-187/+187
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Wrap by REXMLTests module.kou2014-05-271-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding_2.rb: Remove a needless file.kou2014-05-271-59/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_contrib.rb: Indent.kou2014-05-2735-4966/+4966
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/: Use REXMLTests as wrapping module for REXML tests.kou2014-05-2739-39/+39
| | | | | | | | | | I avoid using the same module for library in test because it provides "include REXML" environment in test. Normally, users don't use REXML on "include REXML" environment. So I don't want to write tests on "include REXML" environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_comment.rb: Remove needless REXML module wrapping.kou2014-05-271-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wrap REXML test classes by REXML module.akr2014-05-2739-3/+78
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/xmltokens.rb: Add missing non ASCII valid characterskou2014-02-231-0/+40
| | | | | | | | | | | | | to element name characters. Now, REXML name tokens exactly match "[5] Name" in the XML spec and "[4] NCName" in the Namespaces in XML spec. See comment about the details. [Bug #9539] [ruby-core:60901] Reported by Mario Barcala. Thanks!!! * test/rexml/xpath/test_node.rb: Add tests for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/xpath/test_attribute.rb: Simplify.kou2014-02-221-75/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_xpath*.rb: Move to ...kou2014-02-225-10/+6
| | | | | | | * test/rexml/xpath/*.rb: ... here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/listener.rb: Untabify.kou2014-02-221-47/+47
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/monitor/test_monitor.rb: remove unused variabels.hsbt2014-02-211-1/+0
| | | | | | | | * test/resolv/test_dns.rb: ditto. * test/rexml/test_functions.rb: ditto. * test/rss/test_setup_maker_itunes.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/{rake,rdoc,rss}/*, test/rexml/test_listener.rb: [DOC] Fix typoszzak2013-12-221-1/+1
| | | | | | | by @dvsuresh [Fixes GH-486] https://github.com/ruby/ruby/pull/486 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] Correct a couple of typos in comments by @dvsuresh [Fixes GH-482]a_matsuda2013-12-141-1/+1
| | | | | | | | | | | | | * doc/ChangeLog-YARV: Correct a typo in comment * lib/rubygems/specification.rb: ditto. * test/rexml/data/tutorial.xml: ditto. * test/ruby/test_settracefunc.rb: ditto. * tool/instruction.rb: ditto. https://github.com/ruby/ruby/pull/482 [ci-skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/ultralightparser.rbkou2013-11-161-0/+67
| | | | | | | | | | | | (REXML::Parsers::UltraLightParser#parse): Fix wrong :start_doctype position. [Bug #9061] [ruby-dev:47778] Patch by Ippei Obayashi. Thanks!!! * test/rexml/parser/test_ultra_light.rb: Add a test for this case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parser/test_tree.rbkou2013-09-031-1/+1
| | | | | | | | (TestTreeParser::TestInvalid#test_unmatched_close_tag): Compute expected value from test value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#parse):kou2013-09-031-0/+13
| | | | | | | | | | Add source information to parse exception on no close tag error. [Bug #8844] [ruby-dev:47672] Patch by Ippei Obayashi. Thanks!!! * test/rexml/parser/test_tree.rb: Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parser/test_tree.rb: Fix test name to describe testkou2013-09-031-1/+1
| | | | | | | content. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/treeparser.rb (REXML::Parsers::TreeParser#parse):kou2013-09-031-0/+27
| | | | | | | | | | Remove needless nested parse exception information. [Bug #8844] [ruby-dev:47672] Reported by Ippei Obayashi. Thanks!!! * test/rexml/parser/test_tree.rb: Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parser/test_sax2.rb: Expand abbreviated class name.kou2013-08-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/sax2listener.rb (REXML::SAX2Listener#notationdecl): Fixkou2013-08-111-0/+51
| | | | | | | | | | | wrong number of arguments in the template listener. [Bug #8731] [ruby-dev:47582] Reported by Ippei Obayashi. * test/rexml/parser/test_sax2.rb: Add tests for parsing notation declarations with SAX2 API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):kou2013-08-111-0/+41
| | | | | | | | Fix wrong "%" position in parameter entity declaration event argument. * test/rexml/parser/test_sax2.rb: Add tests for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):kou2013-08-111-0/+24
| | | | | | | | Support NDATA in external entity declaration. * test/rexml/parser/test_sax2.rb: Add tests for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS (REXML::Parsers::SAX2Parser): Add about this change.kou2013-08-111-2/+29
| | | | | | | | | | | | | | * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse): Fix wrong number of arguments. Document says "an array of the entity declaration" but it passes two or more arguments. This is a bug but it break backward compatibility. Reported by Ippei Obayashi. [Bug #8731] [ruby-dev:47582] * lib/rexml/sax2listener.rb (REXML::SAX2Listener#entitydecl): ditto. The listener template accepted two arguments. * test/rexml/parser/test_sax2.rb: Add tests for external ID case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parser/test_sax2.rb: Add SAX2 API test.kou2013-08-111-0/+57
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/parse/test_document_type_declaration.rb: Add tests forkou2013-08-101-0/+47
| | | | | | | parsing document type declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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