[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:40
Message-ID: 20100820161940.338BDAC881 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1166042 by zander:
Updates the test to print new list properties and not fail on ListId
ListId is an internal id which will change for each instantiation.
so don't check that one.
M +32 -0 KoTextDebug.cpp
M +2 -0 opendocument/tests/TestLoading.cpp
--- trunk/koffice/libs/kotext/KoTextDebug.cpp #1166041:1166042
@@ -534,6 +534,38 @@
key = "continue-numbering";
value = QString::number(properties[id].toInt());
break;
+ case KoListStyle::MinimumWidth:
+ key = "minimum-width";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::ListId:
+ key = "list-id";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::IsOutline:
+ key = "is-outline";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::Indent:
+ key = "indent";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::MinimumDistance:
+ key = "minimum-distance";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::Width:
+ key = "width";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::Height:
+ key = "height";
+ value = QString::number(properties[id].toInt());
+ break;
+ case KoListStyle::BulletImageKey:
+ key = "bullet-image-key";
+ value = QString::number(properties[id].toInt());
+ break;
default:
break;
}
--- trunk/koffice/libs/kotext/opendocument/tests/TestLoading.cpp #1166041:1166042
@@ -252,12 +252,14 @@
actualProperties.remove(KoListStyle::Indent);
actualProperties.remove(KoListStyle::MinimumWidth);
actualProperties.remove(KoListStyle::MinimumDistance);
+ actualProperties.remove(KoListStyle::ListId);
QMap<int, QVariant> expectedProperties = expectedFormat.properties();
expectedProperties.remove(KoListStyle::StyleId);
expectedProperties.remove(KoListStyle::Indent);
expectedProperties.remove(KoListStyle::MinimumWidth);
expectedProperties.remove(KoListStyle::MinimumDistance);
+ expectedProperties.remove(KoListStyle::ListId);
return actualProperties == expectedProperties;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic