[TIMOB-4712] Android: Empty XML Document should throw exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-27T10:27:36.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-30, Release 1.8.0 |
Components | Android |
Labels | parity |
Reporter | Don Thorp |
Assignee | Bill Dawson |
Created | 2011-07-19T09:06:11.000+0000 |
Updated | 2011-08-26T15:05:33.000+0000 |
Description
Exposed from xml drillbit test (xml.js,
documentParsing
test).
// Parse empty document - spec specifies that a valid XML doc
// must have a root element (empty string doesn't)
valueOf(function() {
Ti.XML.parseString('');
}).shouldThrowException();
Additional test code. You should expect an exception to be caught and displayed here:
Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/290
Code review, testing, handling additional JIRA issues.
Tested drillbit xml with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2