summaryrefslogtreecommitdiffstats
path: root/xml/src/test/java/org/kxml2
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for KxmlSerializer attributes with whitespace chars.Jesse Wilson2012-08-011-119/+0
| | | | | | | | | Delete some unused Kxml classes while I'm in the area, and combine our two classes named KXmlSerializerTest. (cherry-pick of 22a12704190060f74e308a5b5aa32d0b7f715183.) Change-Id: Id8b3f72edc58547e49ad86c51a171dce3669be3f
* Remove all the remaining AllTests cruft.Elliott Hughes2011-02-281-29/+0
| | | | Change-Id: Ie61022069e597d9c5c6e7ea4659fd614efe31852
* Remove all trailing whitespace from the dalvik team-maintained parts of libcore.Elliott Hughes2010-05-131-6/+6
| | | | | | Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
* Resync a load of tests with upstream, make our build faster.Elliott Hughes2010-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | I started off with a mission to remove uses of dalvik.annotation.* (stuff like @TestTargetNew and other useless junk that just makes it harder to stay in sync with upstream). I wrote a script to go through tests showing me the diff between what we have and what upstream has, thinking that in cases where upstream has also added tests, I may as well pull them in at the same time... ...but I didn't realize how close we were to having dx fill its 1.5GiB heap. After trying various alternatives, I decided to bite the bullet and break core-tests up into one .jar per module. This adds parallelism back into this, the slowest part of our build. (I can do even better, but I'll do that in a separate patch, preferably after we've merged recent changes from master.) Only a couple of dependencies were problematic: the worthless TestSuiteFactory which already contained a comment suggesting we get rid of it, and the fact that some tests -- most notably the concurrent ones -- also contained main methods that started the JUnit tty-based TestRunner. (In the long run, we want to be running the harmony tests directly from a pristine "svn co" of upstream, using DalvikRunner. But this will be a big help in the meantime, and starts the work of getting our current copy of the tests into a state where we can start to extract any meaningful changes/additions we've made.)
* Fix KXmlSerializer so it won't generate invalid XML.Elliott Hughes2009-11-181-17/+88
| | | | | | | | | | | | We were allowing arbitrary characters to be output (which, surprisingly, XML does not), and we weren't correctly escaping CDATA sections that contained "]]>". Pull out some of my test helpers from DocumentBuilderTest into Support_Xml, because they're more generally useful when writing tests involving XML. Also correct a bunch of spelling mistakes in XmlSerializer's javadoc, since I happened to be reading through.
* Our XML serializer permits \0, resulting in malformed documents.Jesse Wilson2009-11-062-0/+77
This failing test demonstrates the problem. It also adds AllTests plumbing for this test and some missing ones.