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

List:       kde-commits
Subject:    koffice/plugins/textshape/tests
From:       Girish Ramakrishnan <girish () forwardbias ! in>
Date:       2008-10-13 13:01:55
Message-ID: 1223902915.884308.22032.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 870933 by girish:

Make tests pass.

 M  +2 -1      TestChangeListCommand.cpp  
 M  +2 -0      TestLists.cpp  


--- trunk/koffice/plugins/textshape/tests/TestChangeListCommand.cpp #870932:870933
@@ -109,7 +109,7 @@
     block = block.next(); // parag2
     QVERIFY(block.textList() == 0);
 
-    ChangeListCommand clc(block, KoListStyle::DecimalItem);
+    ChangeListCommand clc(block, KoListStyle::DiscItem);
     clc.redo();
     QCOMPARE(block.textList(), tl);
 }
@@ -131,6 +131,7 @@
     KoListStyle style2;
     KoListLevelProperties llp;
     llp.setStyle(KoListStyle::DecimalItem);
+    llp.setListItemSuffix(".");
     style2.setLevelProperties(llp);
     block = block.next().next(); // parag4
     style2.applyStyle(block);
--- trunk/koffice/plugins/textshape/tests/TestLists.cpp #870932:870933
@@ -334,6 +334,7 @@
     KoListStyle listStyle;
     KoListLevelProperties llp = listStyle.levelProperties(1);
     llp.setStyle(KoListStyle::DecimalItem);
+    llp.setListItemSuffix(".");
     listStyle.setLevelProperties(llp);
     h1.setListStyle(&listStyle);
 
@@ -341,6 +342,7 @@
     KoListLevelProperties llp2 = listStyle2.levelProperties(2);
     llp2.setStyle(KoListStyle::DecimalItem);
     llp2.setDisplayLevel(2);
+    llp2.setListItemSuffix(".");
     listStyle2.setLevelProperties(llp2);
     h2.setListStyle(&listStyle2);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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