Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-4570 fix a mistake inside the drillbit test itself. #300

Merged
merged 2 commits into from Jul 29, 2011
Merged

TIMOB-4570 fix a mistake inside the drillbit test itself. #300

merged 2 commits into from Jul 29, 2011

Conversation

billdawson
Copy link
Contributor

http://jira.appcelerator.org/browse/TIMOB-4570?focusedCommentId=160913&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-160913

I made a mistake in the apiXmlDocumentImportNode, forgetting that child nodes can also be text. This fixes the test.

The result should be that all apiXmlDocument* tests should succeed.

@@ -520,27 +520,28 @@ describe("Ti.XML tests", {
apiXmlDocumentImportNode: function() {
var doc = Ti.XML.parseString("<a/>");
var otherDoc = Ti.XML.parseString(this.testSource["with_ns.xml"]);
var cakeNode = otherDoc.documentElement.getElementsByTagNameNS("http://example.com", "cake").item(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we assert the length of the node list here? (assert non-null on cakeNode too?)

@marshall
Copy link
Contributor

Code review accepted

@donthorp
Copy link
Contributor

Code reviewed. Tested with Drillbit. Request Accepted.

donthorp added a commit that referenced this pull request Jul 29, 2011
TIMOB-4570 fix a mistake inside the drillbit test itself.
@donthorp donthorp merged commit 109439c into tidev:master Jul 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants