• Home
  • Raw
  • Download

Lines Matching refs:XmlTest

29 bool XmlTest (const char* testString, const char* expected, const char* found, bool noEcho = false)  in XmlTest()  function
50 bool XmlTest( const char* testString, int expected, int found, bool noEcho = false ) in XmlTest() function
252 XmlTest( "Output stream correct.", string( demoEnd ).c_str(), in main()
257 XmlTest( "Root element exists.", true, ( node != 0 && node->ToElement() ) ); in main()
258 XmlTest ( "Root element value is 'ToDo'.", "ToDo", node->Value()); in main()
261 XmlTest( "First child exists & is a comment.", true, ( node != 0 && node->ToComment() ) ); in main()
263 XmlTest( "Sibling element exists & is an element.", true, ( node != 0 && node->ToElement() ) ); in main()
264 XmlTest ( "Value is 'Item'.", "Item", node->Value() ); in main()
267 XmlTest ( "First child exists.", true, ( node != 0 && node->ToText() ) ); in main()
268 XmlTest ( "Value is 'Go to the'.", "Go to the", node->Value() ); in main()
282 XmlTest( "Top level nodes, using First / Next.", 3, count ); in main()
291 XmlTest( "Top level nodes, using Last / Previous.", 3, count ); in main()
302 XmlTest( "Top level nodes, using IterateChildren.", 3, count ); in main()
312 XmlTest( "Children of the 'ToDo' element, using First / Next.", in main()
323 XmlTest( "'Item' children of the 'ToDo' element, using First/Next.", 3, count ); in main()
332 XmlTest( "'Item' children of the 'ToDo' element, using Last/Previous.", 3, count ); in main()
341 XmlTest ( "Element parsed, value is 'Element0'.", "Element0", element0.Value() ); in main()
342 XmlTest ( "Reads attribute 'attribute0=\"foo0\"'.", "foo0", element0.Attribute( "attribute0" )); in main()
343XmlTest ( "Reads incorrectly formatted 'attribute1=noquotes'.", "noquotes", element0.Attribute( "a… in main()
344 XmlTest ( "Read attribute with entity value '>'.", ">", element0.Attribute( "attribute2" ) ); in main()
356 XmlTest( "Error row", doc.ErrorRow(), 3 ); in main()
357 XmlTest( "Error column", doc.ErrorCol(), 17 ); in main()
397 XmlTest( "Location tracking: Declaration row", declaration->Row(), 1 ); in main()
398 XmlTest( "Location tracking: Declaration col", declaration->Column(), 5 ); in main()
399 XmlTest( "Location tracking: room row", room->Row(), 1 ); in main()
400 XmlTest( "Location tracking: room col", room->Column(), 45 ); in main()
401 XmlTest( "Location tracking: doors row", doors->Row(), 1 ); in main()
402 XmlTest( "Location tracking: doors col", doors->Column(), 51 ); in main()
403 XmlTest( "Location tracking: Comment row", comment->Row(), 2 ); in main()
404 XmlTest( "Location tracking: Comment col", comment->Column(), 3 ); in main()
405 XmlTest( "Location tracking: text row", text->Row(), 3 ); in main()
406 XmlTest( "Location tracking: text col", text->Column(), 24 ); in main()
407 XmlTest( "Location tracking: door0 row", door0->Row(), 3 ); in main()
408 XmlTest( "Location tracking: door0 col", door0->Column(), 5 ); in main()
409 XmlTest( "Location tracking: door1 row", door1->Row(), 4 ); in main()
410 XmlTest( "Location tracking: door1 col", door1->Column(), 5 ); in main()
431 XmlTest( "Location tracking: Tab 8: room row", room->Row(), 1 ); in main()
432 XmlTest( "Location tracking: Tab 8: room col", room->Column(), 49 ); in main()
433 XmlTest( "Location tracking: Tab 8: doors row", doors->Row(), 1 ); in main()
434 XmlTest( "Location tracking: Tab 8: doors col", doors->Column(), 55 ); in main()
449 XmlTest( "Query attribute: int as double", result, TIXML_SUCCESS ); in main()
450 XmlTest( "Query attribute: int as double", (int)dVal, 1 ); in main()
452 XmlTest( "Query attribute: double as double", (int)dVal, 2 ); in main()
454 XmlTest( "Query attribute: double as int", result, TIXML_SUCCESS ); in main()
455 XmlTest( "Query attribute: double as int", iVal, 2 ); in main()
457 XmlTest( "Query attribute: not a number", result, TIXML_WRONG_TYPE ); in main()
459 XmlTest( "Query attribute: does not exist", result, TIXML_NO_ATTRIBUTE ); in main()
478 XmlTest( "Stream round trip correct.", string( demoEnd ).c_str(), in main()
484 XmlTest( "String printing correct.", string( demoEnd ).c_str(), in main()
512XmlTest( "UTF-8: Russian value.", (const char*)correctValue, element->Attribute( "value" ), true ); in main()
513 XmlTest( "UTF-8: Russian value row.", 4, element->Row() ); in main()
514 XmlTest( "UTF-8: Russian value column.", 5, element->Column() ); in main()
523 XmlTest( "UTF-8: Browsing russian element name.", in main()
527 XmlTest( "UTF-8: Russian element name row.", 7, text->Row() ); in main()
528 XmlTest( "UTF-8: Russian element name column.", 47, text->Column() ); in main()
531 XmlTest( "UTF-8: Declaration column.", 1, dec->Column() ); in main()
532 XmlTest( "UTF-8: Document column.", 1, doc.Column() ); in main()
558 XmlTest( "UTF-8: Verified multi-language round trip.", 1, okay ); in main()
570 XmlTest( "Legacy encoding: Verify text element.", "r\x82sum\x82", text->Value() ); in main()
587 XmlTest( "Copy/Assign: element copy #1.", "element", elementCopy.Value() ); in main()
588 XmlTest( "Copy/Assign: element copy #2.", "value", elementCopy.Attribute( "name" ) ); in main()
589 XmlTest( "Copy/Assign: element assign #1.", "element", elementAssign.Value() ); in main()
590 XmlTest( "Copy/Assign: element assign #2.", "value", elementAssign.Attribute( "name" ) ); in main()
591 XmlTest( "Copy/Assign: element assign #3.", 0, (int) elementAssign.Attribute( "foo" ) ); in main()
598 XmlTest( "Copy/Assign: comment copy.", "comment", commentCopy.Value() ); in main()
599 XmlTest( "Copy/Assign: comment assign.", "comment", commentAssign.Value() ); in main()
607 XmlTest( "Copy/Assign: unknown copy.", "[unknown]", unknownCopy.Value() ); in main()
608 XmlTest( "Copy/Assign: unknown assign.", "[unknown]", unknownAssign.Value() ); in main()
614 XmlTest( "Copy/Assign: text copy.", "TextNode", textCopy.Value() ); in main()
615 XmlTest( "Copy/Assign: text assign.", "TextNode", textAssign.Value() ); in main()
623 XmlTest( "Copy/Assign: declaration copy.", "UTF-8", decCopy.Encoding() ); in main()
624 XmlTest( "Copy/Assign: text assign.", "UTF-8", decAssign.Encoding() ); in main()
641 XmlTest( "Copy/Assign: document copy.", original.c_str(), copy.c_str(), true ); in main()
642 XmlTest( "Copy/Assign: document assign.", original.c_str(), assign.c_str(), true ); in main()
656 XmlTest ( "Condense white space OFF.", "This is \ntext", in main()
671 XmlTest( "GetText() normal use.", "This is text", element->GetText() ); in main()
678 XmlTest( "GetText() contained element.", element->GetText() == 0, true ); in main()
687 XmlTest( "GetText() partial.", "This is ", element->GetText() ); in main()
704 XmlTest( "CDATA parse.", doc.FirstChildElement()->FirstChild()->Value(), in main()
717 XmlTest( "CDATA stream.", doc.FirstChildElement()->FirstChild()->Value(), in main()
725 XmlTest( "CDATA copy.", doc1.FirstChildElement()->FirstChild()->Value(), in main()
742 XmlTest( "Test InsertBeforeChild on empty node.", ( childNode1 == parent.FirstChild() ), true ); in main()
753 XmlTest( "Test InsertAfterChild on empty node. ", ( childNode1 == parent.LastChild() ), true ); in main()
779 XmlTest( "Basic TiXmlString test. ", "Hello World!", a.c_str() ); in main()
809 XmlTest( "Entity transformation: read. ", expected, context, true ); in main()
823 XmlTest( "Entity transformation: write. ", in main()
841 XmlTest( "dot in element attributes and names", doc.Error(), 0); in main()
854 XmlTest( "Entity with one digit.", result, true ); in main()
857 XmlTest( "Entity with one digit.", in main()
880 XmlTest( "Correct value of unknown.", "!DOCTYPE PLAY SYSTEM 'play.dtd'", unknown->Value() ); in main()
885 XmlTest( "Correct streaming of unknown.", "<!ELEMENT title (#PCDATA)>", str.c_str() ); in main()
900 XmlTest( "Comment formatting.", " Somewhat<evil> ", comment->Value() ); in main()
904 XmlTest( "Comment streaming.", "<!-- Somewhat<evil> -->", str.c_str() ); in main()
922 XmlTest( "White space kept.", " This has leading and trailing space ", text->Value() ); in main()
927 XmlTest( "White space kept.", "This has internal space", text->Value() ); in main()
932XmlTest( "White space kept.", " This has leading, trailing, and internal space ", text->Value() ); in main()
938 XmlTest( "White space condensed.", "This has leading and trailing space", text->Value() ); in main()
943 XmlTest( "White space condensed.", "This has internal space", text->Value() ); in main()
948XmlTest( "White space condensed.", "This has leading, trailing, and internal space", text->Value()… in main()
958 XmlTest( "Parsing repeated attributes.", 0, (int)doc.Error() ); // not an error to tinyxml in main()
959XmlTest( "Parsing repeated attributes.", "blue", doc.FirstChildElement( "element" )->Attribute( "a… in main()
968 XmlTest( "Embedded null throws error.", true, doc.Error() ); in main()
975 XmlTest( "Embedded null throws error.", true, doc.Error() ); in main()
997 XmlTest( "ISO-8859-1 Parsing.", "C�nt�nt�������", tHandle.Text()->Value() ); in main()
1005XmlTest( "Empty document error TIXML_ERROR_DOCUMENT_EMPTY", TiXmlBase::TIXML_ERROR_DOCUMENT_EMPTY,… in main()
1011 XmlTest( "Empty tinyxml string compare equal", ( temp == "" ), true ); in main()
1015 XmlTest( "Empty tinyxml string compare equal", ( foo == bar ), true ); in main()
1024 XmlTest( "Test safe error return.", xml.Error(), false ); in main()
1038 XmlTest( "Low entities.", xml.FirstChildElement()->GetText(), result ); in main()