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

List:       kde-commits
Subject:    koffice/libs/kotext
From:       Thomas Zander <zander () kde ! org>
Date:       2010-08-20 16:19:38
Message-ID: 20100820161938.0C2B1AC876 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1166041 by zander:

Better debug output

 M  +1 -0      KoTextDebug.cpp  
 M  +5 -3      opendocument/tests/TestLoading.cpp  


--- trunk/koffice/libs/kotext/KoTextDebug.cpp #1166040:1166041
@@ -1122,6 +1122,7 @@
     if (list) {
         attrs.append(" list=\"item:").append(QString::number(list->itemNumber(block) \
                + 1)).append('/')
         .append(QString::number(list->count()));
+        attrs.append('"');
         attrs.append(listAttributes(list->format()));
     }
 
--- trunk/koffice/libs/kotext/opendocument/tests/TestLoading.cpp #1166040:1166041
@@ -273,9 +273,11 @@
         }
         if (!compareListFormats(actualList->format(), expectedList->format())
                 || (actualList->itemNumber(actualBlock) != \
                expectedList->itemNumber(expectedBlock))) {
-            qDebug() << "compareBlocks: list properties mismatch at " << \
                actualBlock.text()
-            << KoTextDebug::listAttributes(actualList->format()) << \
                KoTextDebug::listAttributes(expectedList->format())
-            << actualList->itemNumber(actualBlock) << \
expectedList->itemNumber(expectedBlock); +            qDebug() << "compareBlocks: \
list properties mismatch at " << actualBlock.text() << endl +            << \
"expected:" << KoTextDebug::listAttributes(expectedList->format()) +            << \
expectedList->itemNumber(expectedBlock) << endl +            << "actual:  " << \
KoTextDebug::listAttributes(actualList->format()) +            << \
actualList->itemNumber(actualBlock);  return false;
         }
     } else {


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

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