[Kst] extragear/graphics/kst/tests

George Staikos staikos at kde.org
Fri Jul 8 02:34:19 CEST 2005


SVN commit 432624 by staikos:

update testcase for the new linebreak parsing


 M  +9 -2      testlabelparser.cpp  


--- trunk/extragear/graphics/kst/tests/testlabelparser.cpp #432623:432624
@@ -81,7 +81,8 @@
 
   parsed = Label::parse("\\n");
   doTest(parsed != 0L);
-  doTest(parsed->chunk->text == "\n");
+  doTest(parsed->chunk->text == "");
+  doTest(parsed->chunk->linebreak == true);
   doTest(parsed->chunk->vOffset == Label::Chunk::None);
   doTest(parsed->chunk->symbol == false);
   delete parsed;
@@ -104,10 +105,16 @@
   c = c->next;
   doTest(c->prev != 0L);
   doTest(c->next != 0L);
-  doTest(c->text == "foo bar\n");
+  doTest(c->text == "foo bar");
   doTest(c->symbol == false);
   c = c->next;
   doTest(c->prev != 0L);
+  doTest(c->next != 0L);
+  doTest(c->text == "");
+  doTest(c->symbol == false);
+  doTest(c->linebreak == true);
+  c = c->next;
+  doTest(c->prev != 0L);
   doTest(c->next == 0L);
   doTest(c->text == "Q");
   doTest(c->symbol == true);


More information about the Kst mailing list