summaryrefslogtreecommitdiff
path: root/libs/pbd/test
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
commit22b07e0233a29d9633ffa825a79503befaf2e16e (patch)
tree1d8b06056f8e12197158f5d906319767d3dedda5 /libs/pbd/test
parente11ba7b79d68bc1070b170236c22123966d7bcc3 (diff)
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/pbd/test')
-rw-r--r--libs/pbd/test/scalar_properties.cc2
-rw-r--r--libs/pbd/test/scalar_properties.h2
-rw-r--r--libs/pbd/test/signals_test.cc4
-rw-r--r--libs/pbd/test/testrunner.cc8
-rw-r--r--libs/pbd/test/xpath.cc36
5 files changed, 26 insertions, 26 deletions
diff --git a/libs/pbd/test/scalar_properties.cc b/libs/pbd/test/scalar_properties.cc
index 3586fc3a95..be8ef20655 100644
--- a/libs/pbd/test/scalar_properties.cc
+++ b/libs/pbd/test/scalar_properties.cc
@@ -31,7 +31,7 @@ ScalarPropertiesTest::testBasic ()
_fred.clear_changes ();
CPPUNIT_ASSERT (_fred.changed() == false);
-
+
_fred = 5;
CPPUNIT_ASSERT (_fred == 5);
CPPUNIT_ASSERT (_fred.changed() == true);
diff --git a/libs/pbd/test/scalar_properties.h b/libs/pbd/test/scalar_properties.h
index 6175aeacfe..d313477659 100644
--- a/libs/pbd/test/scalar_properties.h
+++ b/libs/pbd/test/scalar_properties.h
@@ -13,7 +13,7 @@ public:
void testBasic ();
static void make_property_quarks ();
-
+
private:
PBD::Property<int> _fred;
};
diff --git a/libs/pbd/test/signals_test.cc b/libs/pbd/test/signals_test.cc
index fd845c8be1..ab70388760 100644
--- a/libs/pbd/test/signals_test.cc
+++ b/libs/pbd/test/signals_test.cc
@@ -20,7 +20,7 @@ public:
void emit () {
Fred ();
}
-
+
PBD::Signal0<void> Fred;
};
@@ -86,6 +86,6 @@ SignalsTest::testScopedConnectionList ()
e->emit ();
delete r;
e->emit ();
-
+
CPPUNIT_ASSERT_EQUAL (1, N);
}
diff --git a/libs/pbd/test/testrunner.cc b/libs/pbd/test/testrunner.cc
index 11f60f46a2..92757eb45d 100644
--- a/libs/pbd/test/testrunner.cc
+++ b/libs/pbd/test/testrunner.cc
@@ -24,19 +24,19 @@ main ()
text_receiver.listen_to (PBD::warning);
ScalarPropertiesTest::make_property_quarks ();
-
+
CppUnit::TestResult testresult;
CppUnit::TestResultCollector collectedresults;
testresult.addListener (&collectedresults);
-
+
CppUnit::BriefTestProgressListener progress;
testresult.addListener (&progress);
-
+
CppUnit::TestRunner testrunner;
testrunner.addTest (CppUnit::TestFactoryRegistry::getRegistry ().makeTest ());
testrunner.run (testresult);
-
+
CppUnit::CompilerOutputter compileroutputter (&collectedresults, std::cerr);
compileroutputter.write ();
diff --git a/libs/pbd/test/xpath.cc b/libs/pbd/test/xpath.cc
index 70240d3d69..2283c946e4 100644
--- a/libs/pbd/test/xpath.cc
+++ b/libs/pbd/test/xpath.cc
@@ -23,7 +23,7 @@ XPathTest::testMisc ()
XMLTree doc(testdata_path);
// "//bank" gives as last element an empty element libxml bug????
boost::shared_ptr<XMLSharedNodeList> result = doc.find("//bank[@name]");
-
+
// cout << "Found " << result->size() << " banks" << endl;
assert(result->size() == 8);
// int counter = 1;
@@ -36,19 +36,19 @@ XPathTest::testMisc ()
// " with name: " << (*j)->property("name")->value() << endl;
}
}
-
+
// cout << endl << endl << "Test 2: RosegardenPatchFile.xml: Find all programs whose program name contains 'Latin'" << endl;
-
+
result = doc.find("/rosegarden-data/studio/device/bank/program[contains(@name, 'Latin')]");
assert(result->size() == 5);
-
+
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
// cout << "\t found program " << (*i)->property("id")->value() <<
// " with name: " << (*i)->property("name")->value() << endl;
}
// cout << endl << endl << "Test 3: TestSession.ardour: find all Sources where captured-for contains the string 'Guitar'" << endl;
-
+
// We have to allocate a new document here, or we get segfaults
std::string testsession_path;
CPPUNIT_ASSERT (find_file (test_search_path (), "TestSession.ardour", testsession_path));
@@ -56,16 +56,16 @@ XPathTest::testMisc ()
XMLTree doc2(testsession_path);
result = doc2.find("/Session/Sources/Source[contains(@captured-for, 'Guitar')]");
assert(result->size() == 16);
-
+
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
// cout << "\t found source '" << (*i)->property("name")->value() <<
// "' with id: " << (*i)->property("id")->value() << endl;
}
-
+
// cout << endl << endl << "Test 4: TestSession.ardour: Find all elements with an 'id' and 'name' attribute" << endl;
-
+
result = doc2.find("//*[@id and @name]");
-
+
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
assert((*i)->property("id"));
assert((*i)->property("name"));
@@ -73,9 +73,9 @@ XPathTest::testMisc ()
// "' with id: " << (*i)->property("id")->value() <<
// "' and name: " << (*i)->property("name")->value() << endl;
}
-
+
// cout << endl << endl << "Test 5: ProtoolsPatchFile.midnam: Get Banks and Patches for 'Name Set 1'" << endl;
-
+
std::string testmidnam_path;
CPPUNIT_ASSERT (find_file (test_search_path (), "ProtoolsPatchFile.midnam", testmidnam_path));
@@ -83,7 +83,7 @@ XPathTest::testMisc ()
XMLTree doc3(testmidnam_path);
result = doc3.find("/MIDINameDocument/MasterDeviceNames/ChannelNameSet[@Name='Name Set 1']/PatchBank");
assert(result->size() == 16);
-
+
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
// cout << "\t found Patchbank " << (*i)->property("Name")->value() << endl;
boost::shared_ptr<XMLSharedNodeList> patches = doc3.find ("//Patch[@Name]", i->get());
@@ -95,22 +95,22 @@ XPathTest::testMisc ()
// cout << endl << endl << "Test 5: ProtoolsPatchFile.midnam: Find attribute nodes" << endl;
result = doc3.find("//@Value");
-
+
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
boost::shared_ptr<XMLNode> node = (*i);
// cout << "\t found attribute node: " << node->name()
// << " value: " << node->attribute_value() << endl;
- }
-
+ }
+
// cout << endl << endl << "Test 6: ProtoolsPatchFile.midnam: Find available channels on 'Name Set 1'" << endl;
result = doc3.find(
"//ChannelNameSet[@Name = 'Name Set 1']//AvailableChannel[@Available = 'true']/@Channel");
-
+
assert(result->size() == 15);
for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
boost::shared_ptr<XMLNode> node = (*i);
// cout << "\t found available Channel: " << node->name()
// << " value: " << node->attribute_value() << endl;
- }
-
+ }
+
}