[sword-svn] r2739 - trunk/tests
scribe at crosswire.org
scribe at crosswire.org
Sun Sep 30 10:32:03 MST 2012
Author: scribe
Date: 2012-09-30 10:32:03 -0700 (Sun, 30 Sep 2012)
New Revision: 2739
Modified:
trunk/tests/osistest.cpp
Log:
updated to show Mark 1:14 stuff
Modified: trunk/tests/osistest.cpp
===================================================================
--- trunk/tests/osistest.cpp 2012-09-30 17:08:31 UTC (rev 2738)
+++ trunk/tests/osistest.cpp 2012-09-30 17:32:03 UTC (rev 2739)
@@ -8,6 +8,31 @@
using namespace sword;
+void outputCurrentVerse(SWModule *module) {
+
+ module->RenderText();
+
+ cout << "Key:\n";
+ cout << module->getKeyText() << "\n";
+ cout << "-------\n";
+
+ cout << "Preverse Header 0:\nRaw:\n";
+ SWBuf header = module->getEntryAttributes()["Heading"]["Preverse"]["0"];
+ cout << header << endl;
+ cout << "-------\n";
+ cout << "Rendered Header:\n";
+ cout << module->RenderText(header) << endl;
+ cout << "-------\n";
+ cout << "CSS:\n";
+ cout << module->getRenderHeader() << endl;
+ cout << "-------\n";
+ cout << "RenderText:\n";
+ cout << module->RenderText() << endl;
+ cout << "-------\n";
+ cout << "-------\n\n";
+}
+
+
int main(int argc, char **argv) {
if (argc != 2) {
@@ -26,20 +51,10 @@
}
module->setKey("Ps.3.1");
+ outputCurrentVerse(module);
- module->RenderText();
+ module->setKey("Mark.1.14");
+ outputCurrentVerse(module);
- SWBuf header = module->getEntryAttributes()["Heading"]["Preverse"]["0"];
-
- cout << "-------\n";
- cout << header << endl;
-
- cout << "-------\n";
- cout << module->RenderText(header) << endl;
-
- cout << "-------\n";
- cout << module->getRenderHeader() << endl;
- cout << module->RenderText() << endl;
-
return 0;
}
More information about the sword-cvs
mailing list