[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-21 19:04:42
Message-ID: 20100821190442.6FB00AC883 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1166409 by zander:

Add more missing properties for better debugging

 M  +28 -0     KoTextDebug.cpp  
 M  +6 -6      opendocument/tests/TestLoading.cpp  


--- trunk/koffice/libs/kotext/KoTextDebug.cpp #1166408:1166409
@@ -271,6 +271,34 @@
             key = "language";
             value = properties[id].toString();
             break;
+        case KoCharacterStyle::HasHyphenation:
+            key = "hypenation";
+            value = properties[id].toBool();
+            break;
+        case KoCharacterStyle::StrikeOutText:
+            key = "strikeout-text";
+            value = properties[id].toString();
+            break;
+        case KoCharacterStyle::FontCharset:
+            key = "font-charset";
+            value = properties[id].toString();
+            break;
+        case KoCharacterStyle::TextRotationAngle:
+            key = "rotation-angle";
+            value = properties[id].toInt();
+            break;
+        case KoCharacterStyle::TextRotationScale:
+            key = "text-rotation-scale";
+            value = properties[id].toInt() == KoCharacterStyle::Fixed ? "Fixed" : \
"LineHeight"; +            break;
+        case KoCharacterStyle::TextScale:
+            key = "text-scale";
+            value = properties[id].toInt();
+            break;
+        case KoCharacterStyle::InlineRdf:
+            key = "inline-rdf";
+            value = properties[id].toInt();
+            break;
         default:
             break;
         }
--- trunk/koffice/libs/kotext/opendocument/tests/TestLoading.cpp #1166408:1166409
@@ -144,9 +144,9 @@
                  && actualFormat.verticalAlignment() == \
expectedFormat.verticalAlignment(); // FIXME: Compare other properties  
     if (!equal) {
-        qDebug() << "Actual property:   " << \
                KoTextDebug::textAttributes(actualFormat);
-        qDebug() << "Expected property: " << \
                KoTextDebug::textAttributes(expectedFormat);
-        qDebug() << "compareFragment: property mismatch at " << \
actualFragment.text(); +        qDebug() << "compareFragments: properties mismatch at \
" << actualFragment.text() << endl +        << "actual:  " << \
KoTextDebug::textAttributes(actualFormat) << endl +        << "expected:" << \
KoTextDebug::textAttributes(expectedFormat);  }
 
     return equal;
@@ -276,10 +276,10 @@
         if (!compareListFormats(actualList->format(), expectedList->format())
                 || (actualList->itemNumber(actualBlock) != \
                expectedList->itemNumber(expectedBlock))) {
             qDebug() << "compareBlocks: list properties mismatch at " << \
actualBlock.text() << endl +            << "actual:  " << \
KoTextDebug::listAttributes(actualList->format()) +            << \
                actualList->itemNumber(actualBlock) << endl
             << "expected:" << KoTextDebug::listAttributes(expectedList->format())
-            << expectedList->itemNumber(expectedBlock) << endl
-            << "actual:  " << KoTextDebug::listAttributes(actualList->format())
-            << actualList->itemNumber(actualBlock);
+            << expectedList->itemNumber(expectedBlock);
             return false;
         }
     } else {


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

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