summaryrefslogtreecommitdiff
path: root/test/rexml
AgeCommit message (Collapse)Author
2012-10-28* lib/rexml/parsers/baseparser.rb: Fix a bug that UTF-8 is usedkou
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
2012-10-28* test/rexml/test_document.rb: Group tests that they parsekou
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
2012-10-28* test/rexml/test_document.rb: Add tests for parsing XML encodedkou
by UTF-16 with BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-28* lib/rexml/document.rb (REXML::Document#write): Add :encoding optionkou
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
2012-10-28* lib/rexml/document.rb (REXML::Document#write): Accept optionskou
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
2012-07-23Suppress warnings.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-05* properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08test: fix test conditionsnobu
* 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
2012-02-02* lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:kou
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
2011-12-08* test/rexml/test_order.rb (OrderTester#test_more_ordering): useusa
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
2011-09-26* test/rexml/test_sax.rb: add require 'rexml/document.ayumin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07fix test/rexml/test_encoding.rb failureayumin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07* lib/rexml/parsers/baseparser.rb, test/rexml/test_comment.rb:kou
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
2011-06-11* lib/rexml/formatters/pretty.rbkou
(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
2011-06-11* test/rexml/test_core.rbkou
(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
2011-06-11* lib/rexml/parsers/xpathparser.rbkou
(REXML::Parsers::XPathParser#parse), test/rexml/test_elements.rb (ElementsTester::test_each_with_frozen_condition): don't modify original XPath. fixes #4164 Reported by Pavel Shved. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11* test/rexml/test_elements.rb (ElementsTester): remove needlesskou
prefix from test name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27* test/rexml/test_core.rb (Tester::test_text_frozen): split frozenkou
string test. refs #4783 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27prevent an error when passing a frozen string to REXML::Text.newshyouhei
dup the string passed in instead of cloning so that it's frozen state is ignored Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15* remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-02* lib/rexml/encoding.rb (REXML::Encoding#encoding=): store @encodingnaruse
a String which means the name of the encoding. this partially revert r29646. * lib/rexml/document.rb: follow above. * lib/rexml/output.rb: ditto. * lib/rexml/parsers/baseparser.rb: ditto. * lib/rexml/source.rb: ditto. * lib/rexml/xmldecl.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-19Fix tests.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20* test/rexml/test_contrib.rb (ContribTester#test_pos): should notnobu
use fixed path name for tests. [ruby-dev:42827] * test/rexml/test_sax.rb (SAX2Tester#test_socket): should not use fixed port for tests. [ruby-dev:42828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* test/rexml/test_light.rb: really suppress a warning.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* test/rexml/test_light.rb: suppress a warning.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.kou
[ruby-core:33305] Reported by Aaron Patterson. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* test/rexml/test_doctype.rb: add Accessor to test case name.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* test/rexml/test_doctype.rb: Doctype -> DocType.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07* test/rexml/test_doctype_mixin.rb: rename to ...kou
* test/rexml/test_doctype.rb: ... this to remove needless name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19* test/rexml/test_core.rbkou
(Tester#test_pretty_format_long_text_finite): skip a test that uses long string on small memory system. [ruby-dev:42599] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-18* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):kou
REXML::Formatters::Pretty#wrap used a recursive method call to format text. This switches it to use an iterative approach. [ruby-core:33245] Patch by Jeremy Evans. Thanks!!! * test/rexml/test_core.rb: add a test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30* lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464]kou
* lib/rexml/encodings/: remove. * lib/rexml/document.rb, lib/rexml/formatters/default.rb, lib/rexml/output.rb, lib/rexml/parseexception.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb, lib/rexml/xmldecl.rb: use Ruby's native Encoding object. * test/rexml/, test/rss/: follow the above encoding chagnes. * NEWS: add REXML's incompatible change about encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-24Refix to give the encoding of gzfile.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19Specify external encoding.naruse
When external encoding is not specified, it uses default external encoding. But it depends the environment. So specify as UTF-8 for environments whose locale is not UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-18* properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* lib/rexml/xpath_parser.rb, test/rexml/test_xpath.rb:kou
add missing method availability check. [ruby-core:32447] Reported by Wiebe Cazemier. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/test_sax.rb: don't use thread and sleep to avoid slow test.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/test_core.rb: enable.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/: untabify.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/: fix fixture data path. All REXML tests are worked.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/test_listener.rb: remove needless codes.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17* test/rexml/: import REXML tests fromkou
http://www.germane-software.com/repos/rexml/trunk/test/. Many tests are failed temporary. I'll fix them quickly. Sorry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14* lib/rexml/source.rb: force_encoding("UTF-8") when the inputnaruse
is already UTF-8. patched by Kouhei Sutou [ruby-core:23404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-29* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):nobu
any number spaces can be placed between equal-sign and the value. patch from Ed Howland in [ruby-core:27345]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-28* lib/rexml/formatters/default.rb (write_attribute): fix antenderlove
exception when printing a document when duplicate namespaced attributes exist. Thanks, Alexey Froloff [ruby-core:2389] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-06* lib/rexml/entity.rb (unnormalized): do not callshugo
document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13* test/rexml/test_document.rb: removed garbage.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-13* text/rexml/test_document.rb (test_entity_expansion_limit): added tests.shugo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01* lib/rexml/document.rb: limit entity expansion.shugo
* lib/rexml/entity.rb: ditto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e