2005-10-31 13:07:30 +01:00
|
|
|
#ifndef ARABICA_DOM_TEST_SUITE_HPP
|
|
|
|
#define ARABICA_DOM_TEST_SUITE_HPP
|
|
|
|
|
|
|
|
#include "../CppUnit/TestRunner.hpp"
|
|
|
|
#include "../CppUnit/framework/Test.h"
|
|
|
|
#include "../CppUnit/framework/TestSuite.h"
|
|
|
|
|
2007-09-05 00:55:47 +02:00
|
|
|
#include "test_DOMImplementation.hpp"
|
|
|
|
#include "test_DocumentType.hpp"
|
|
|
|
#include "test_Document.hpp"
|
|
|
|
#include "test_ProcessingInstruction.hpp"
|
|
|
|
#include "test_Siblings.hpp"
|
|
|
|
#include "test_Element.hpp"
|
|
|
|
#include "test_DocumentFragment.hpp"
|
|
|
|
#include "test_Attribute.hpp"
|
2005-10-31 13:07:30 +01:00
|
|
|
#include "test_Text.hpp"
|
|
|
|
#include "test_CDATA.hpp"
|
|
|
|
#include "test_CharacterData.hpp"
|
2007-07-19 18:57:04 +02:00
|
|
|
#include "test_SAX2DOM.hpp"
|
|
|
|
#include "test_TreeWalker.hpp"
|
2009-11-23 23:36:15 +01:00
|
|
|
#include "test_NamedNodeMap.hpp"
|
2010-07-14 10:08:46 +02:00
|
|
|
#include "test_Stream.hpp"
|
2005-10-31 13:07:30 +01:00
|
|
|
|
2010-12-09 12:34:15 +01:00
|
|
|
#include "conformance/level1/core/alltests.hpp"
|
|
|
|
|
2005-10-31 13:07:30 +01:00
|
|
|
template<class string_type, class string_adaptor>
|
2007-12-08 22:20:28 +01:00
|
|
|
bool DOM_test_suite(int argc, const char** argv)
|
2005-10-31 13:07:30 +01:00
|
|
|
{
|
|
|
|
TestRunner runner;
|
|
|
|
|
|
|
|
runner.addTest("DOMImplementationTest", DOMImplementationTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("DocumentTypeTest", DocumentTypeTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("DocumentTest", DocumentTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("SiblingsTest", SiblingsTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("ElementTest", ElementTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("AttributeTest", AttrTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("ProcessingInstructionTest", ProcessingInstructionTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("TextTest", TextTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("CDATATest", CDATATest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("CharacterDataText", CharacterDataTest_suite<string_type, string_adaptor >());
|
|
|
|
runner.addTest("DocumentFragmentTest", DocumentFragmentTest_suite<string_type, string_adaptor >());
|
2007-07-19 18:57:04 +02:00
|
|
|
runner.addTest("SAX2DOMTest", SAX2DOMTest_suite<string_type, string_adaptor>());
|
2009-11-23 23:36:15 +01:00
|
|
|
runner.addTest("NamedNodeMapTest", NamedNodeMapTest_suite<string_type, string_adaptor>());
|
2007-07-19 18:57:04 +02:00
|
|
|
runner.addTest("TreeWalkerTest", TreeWalkerTest_suite<string_type, string_adaptor>());
|
2010-07-14 10:08:46 +02:00
|
|
|
runner.addTest("StreamTest", StreamTest_suite<string_type, string_adaptor>());
|
2010-12-09 12:34:15 +01:00
|
|
|
|
|
|
|
runner.addTest("level1/core", DOM_Level_1_Core_Test_Suite<string_type, string_adaptor>());
|
|
|
|
|
2007-12-08 22:20:28 +01:00
|
|
|
return runner.run(argc, argv);
|
2005-10-31 13:07:30 +01:00
|
|
|
} // main
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|