[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bcalligra=5D_libs/kotext/opendocument/tests=3A_Print?=
From:       Ganesh Paramasivam <ganesh () crystalfab ! com>
Date:       2011-04-14 13:53:53
Message-ID: 20110414135353.C7B91A609B () git ! kde ! org
[Download RAW message or body]

Git commit b53d8cdb72b5a68595cc807cedca560777ef2b83 by Ganesh Paramasivam.
Committed on 14/04/2011 at 15:53.
Pushed by ganeshp into branch 'master'.

Print-out the original and after-round-trip document if a unit-test is a failure

M  +10   -1    libs/kotext/opendocument/tests/TestChangeTracking.cpp     

http://commits.kde.org/calligra/b53d8cdb72b5a68595cc807cedca560777ef2b83

diff --git a/libs/kotext/opendocument/tests/TestChangeTracking.cpp \
b/libs/kotext/opendocument/tests/TestChangeTracking.cpp index f1189af..1956005 100644
--- a/libs/kotext/opendocument/tests/TestChangeTracking.cpp
+++ b/libs/kotext/opendocument/tests/TestChangeTracking.cpp
@@ -305,7 +305,7 @@ void TestChangeTracking::testChangeTracking_data()
     QTest::newRow("Header with Paragraph")  << \
"ChangeTracking/complex-delete-merges/header-merge-with-paragrah-simple/header-merge-with-paragrah-simple-tracked.odt" \
<< "DeltaXML";  
     //Other tests
-    //QTest::newRow("Others-1")  << \
"ChangeTracking/other/michiels-deletion-sample/delete-text-across-siblings-tracked.odt";
 +    //QTest::newRow("Others-1")  << \
"ChangeTracking/other/michiels-deletion-sample/delete-text-across-siblings-tracked.odt" \
                << "DeltaXML";
     QTest::newRow("Others-2")  << \
                "ChangeTracking/other/list-id-sample/list-sample-tracked.odt" << \
                "DeltaXML";
     QTest::newRow("Others-3")  << \
"ChangeTracking/other/list-table-list-1/list-table-list-tracked.odt" << "DeltaXML";  
@@ -346,6 +346,15 @@ bool TestChangeTracking::verifyContentXml(QString \
&originalFileName, QString &ro  roundTripReadStore->close();
 
     bool returnValue = (originalDocumentString == roundTripDocumentString);
+    if (!returnValue) {
+        qDebug() << "***********************ORIGINAL \
DOCUMENT************************"; +        qDebug() << originalDocumentString;
+        qDebug() << \
"****************************************************************"; +        qDebug() \
<< "***********************AFTER ROUND-TRIP************************"; +        \
qDebug() << roundTripDocumentString; +        qDebug() << \
"****************************************************************"; +        
+    }
     return returnValue;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic