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

List:       kde-commits
Subject:    playground/pim/richtextbuilders/tests
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2008-10-31 23:53:02
Message-ID: 1225497182.480611.20314.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878363 by skelly:

Port test to recent changes in the builders.



 M  +2 -0      CMakeLists.txt  
 M  +1 -1      htmlbuildertest.cpp  


--- trunk/playground/pim/richtextbuilders/tests/CMakeLists.txt #878362:878363
@@ -1,3 +1,4 @@
+ENABLE_TESTING()
 FIND_PACKAGE(KDE4 REQUIRED)
 INCLUDE_DIRECTORIES( ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} )
 
@@ -5,6 +6,7 @@
 
 SET(krichtexteditorSources
   ../markupdirector.cpp
+  ../htmlbuilder.cpp
   )
 
 
--- trunk/playground/pim/richtextbuilders/tests/htmlbuildertest.cpp #878362:878363
@@ -26,7 +26,7 @@
     md->constructContent ( doc );
     QString result = hb->getResult();
 
-    QRegExp regex ( QString ( "^<p style=\"margin-top:0;margin-bottom:0;\">\\s*This \
<strong>text</strong> is bold.\\s*</p>\\s*$" ) ); +    QRegExp regex ( QString ( \
"^<p\\s*>\\s*This <strong>text</strong> is bold.\\s*</p>\\s*$" ) );  
     QVERIFY ( regex.exactMatch ( result ) );
 


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

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