pugixml/tests
Arseny Kapoulkine 125aa55061 Fix node_declaration copying with empty name
node_copy_string relied on the fact that target node had an empty name and
value. Normally this is a safe assumption (and a good one to make since it
makes copying faster), however it was not checked and there was one case when
it did not hold.

Since we're reusing the logic for inserting nodes, newly inserted declaration
nodes had the name set automatically to xml, which in our case violates the
assumption and is counter-productive since we'll override the name right after
setting it.

For now the best solution is to do the same insertion manually - that results
in some code duplication that we can refactor later (same logic is partially
shared by _move variants anyway so on a level duplicating is not that bad).
2014-11-20 23:39:40 -08:00
..
data Introduced encoding_latin1 support (conversion on loading, conversion on saving, encoding name in declaration in document::save) 2011-12-20 09:45:10 +00:00
allocator.cpp tests: Assert on out-of-memory in tests 2014-10-21 03:33:47 +00:00
allocator.hpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
archive.pl Make sure newlines are consistent for both .zip and .tar.gz archives 2013-07-20 05:55:22 +00:00
autotest-freebsd.sh tests: Fixed Linux startup scripts (line endings), added FreeBSD startup script 2010-05-17 07:23:37 +00:00
autotest-linux.sh tests: Updated autotest-linux.sh for Fedora 2011-07-27 07:40:38 +00:00
autotest-local.pl Add MSVC 12 (2013) to autotest list 2014-02-12 04:38:54 +00:00
autotest-macos.sh tests: Final MacOS fixes 2010-05-20 17:51:32 +00:00
autotest-remote-host.pl tests: Added wait for server to remote host, added automatic VM launch 2010-05-13 16:48:46 +00:00
autotest-remote-server.pl tests: Disabled VM shutdown/startup overlap to decrease peak memory consumption 2011-07-24 06:19:57 +00:00
autotest-report.pl tests: Added MSVC11 variants to test suite 2012-03-07 05:59:09 +00:00
autotest-solaris.sh tests: Added Solaris autotest 2010-05-25 22:19:57 +00:00
common.hpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
gcov-filter.pl tests: Introduced fullcoverage mode 2010-08-29 15:46:30 +00:00
helpers.hpp tests: Added tests for read-only xml_text operations 2012-03-23 03:25:03 +00:00
main.cpp tests: Add a way for tests to verify allocation failure 2014-10-26 03:46:28 +00:00
test_document.cpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
test_dom_modify.cpp Fix node_declaration copying with empty name 2014-11-20 23:39:40 -08:00
test_dom_text.cpp Implement long long support if PUGIXML_HAS_LONG_LONG is defined (autodetection is not implemented yet) 2014-02-08 20:36:09 +00:00
test_dom_traverse.cpp Fix xml_node::offset_debug for corner cases 2014-11-05 09:32:52 +01:00
test_header_guard.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_iosfwd_1.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_iosfwd_2.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_iostream_1.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_iostream_2.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_string_1.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_string_2.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_header_string_iostream.cpp tests: Added new test for string/istream include interaction (this actually fails on DMC) 2012-03-20 05:05:35 +00:00
test_memory.cpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
test_parse_doctype.cpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
test_parse.cpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
test_unicode.cpp tests: Android compilation fixes 2012-03-06 08:49:58 +00:00
test_version.cpp tests: Fix version test 2014-11-17 22:45:38 -08:00
test_write.cpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
test_xpath_api.cpp tests: Add more tests for better coverage 2014-10-23 07:41:07 +00:00
test_xpath_functions.cpp tests: Add more tests for better coverage 2014-10-23 07:41:07 +00:00
test_xpath_operators.cpp tests: Fix tests on various compilers 2014-11-19 16:34:57 -08:00
test_xpath_parse.cpp tests: Fixed CW compilation 2010-10-22 04:28:52 +00:00
test_xpath_paths_abbrev_w3c.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_xpath_paths_w3c.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_xpath_paths.cpp tests: Fix tests on various compilers 2014-11-19 16:34:57 -08:00
test_xpath_variables.cpp tests: Fix test failure in PUGIXML_WCHAR_MODE 2014-10-24 01:37:27 +00:00
test_xpath_xalan_1.cpp tests: Minor fix for MinGW 3.4 2010-08-30 05:01:19 +00:00
test_xpath_xalan_2.cpp Fix bogus Clang 3.4 warning 2014-02-11 04:55:36 +00:00
test_xpath_xalan_3.cpp XPath: Rename xml_node::select_single_node to ::select_node 2014-10-19 07:33:51 +00:00
test_xpath_xalan_4.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_xpath_xalan_5.cpp Set svn:eol-style to native for all text files 2010-07-19 09:57:32 +00:00
test_xpath.cpp tests: Fix tests on various compilers 2014-11-19 16:34:57 -08:00
test.cpp tests: Minor fixes for WinCE compilation 2012-02-19 09:05:23 +00:00
test.hpp Rename xml_document::load to load_string 2014-11-17 19:52:23 -08:00
writer_string.cpp tests: Android compilation fixes 2012-03-06 08:49:58 +00:00
writer_string.hpp tests: Android compilation fixes 2012-03-06 08:49:58 +00:00