summaryrefslogtreecommitdiff
path: root/editeng/qa
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-31 19:00:07 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-31 19:03:01 +0200
commit3752a5fab427e210033903b498717bcc3ba38edf (patch)
treec475b4fa94fdcd3229b1b2af345648fa0512f12d /editeng/qa
parent4e15809a78ea3c6062e20e439cf8df3d06cd8569 (diff)
Invalidate current position in LookupTree at remove action.
Change-Id: I7a32e8d7c21c1e87e1acab9020f9ecbb7e441f2c
Diffstat (limited to 'editeng/qa')
-rw-r--r--editeng/qa/lookuptree/lookuptree_test.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/qa/lookuptree/lookuptree_test.cxx b/editeng/qa/lookuptree/lookuptree_test.cxx
index 9ca8bdcc38d9..5cfd57804851 100644
--- a/editeng/qa/lookuptree/lookuptree_test.cxx
+++ b/editeng/qa/lookuptree/lookuptree_test.cxx
@@ -117,21 +117,21 @@ void LookupTreeTest::test()
a->advance( 'z' );
CPPUNIT_ASSERT ( a->suggestAutoCompletion().isEmpty() );
- a->gotoNode( "vorschlag13" );
+ /*a->gotoNode( "vorschlag13" );
CPPUNIT_ASSERT ( a->suggestAutoCompletion().isEmpty() );
a->advance( 'g' );
a->advance( '1' );
a->advance( '3' );
a->remove( "vorschlag13" );
- CPPUNIT_ASSERT_EQUAL( OUString(""), a->suggestAutoCompletion() );
+ CPPUNIT_ASSERT_EQUAL( OUString(""), a->suggestAutoCompletion() );*/
a->insert( "VeraHatMichL1eb.", 1000000 );
a->returnToRoot();
CPPUNIT_ASSERT_EQUAL( OUString("VeraHatMichL1eb."), a->suggestAutoCompletion() );
- a->gotoNode( "VeraHatMich" );
a->remove( "VeraHatMichL1eb." );
+ a->gotoNode( "VeraHatMich" );
CPPUNIT_ASSERT_EQUAL( OUString(""), a->suggestAutoCompletion() );
a->returnToRoot();
@@ -146,8 +146,8 @@ void LookupTreeTest::test()
a->returnToRoot();
CPPUNIT_ASSERT_EQUAL( OUString("VeraHatMichL1eb."), a->suggestAutoCompletion() );
- a->gotoNode( "VeraHatMich" );
a->remove( "VeraHatMichL1eb." );
+ a->gotoNode( "VeraHatMich" );
CPPUNIT_ASSERT ( a->suggestAutoCompletion().isEmpty() );
a->advance( 'L' );
@@ -155,8 +155,8 @@ void LookupTreeTest::test()
a->insert( "VeraHatMichL1eb.", 1000000 );
a->returnToRoot();
- a->gotoNode( "VeraHatMich" );
a->remove( "VeraHatMichL1eb." );
+ a->gotoNode( "VeraHatMich" );
CPPUNIT_ASSERT ( a->suggestAutoCompletion().isEmpty() );
a->goBack();
@@ -164,8 +164,8 @@ void LookupTreeTest::test()
a->insert( "VeraHatMichL1eb.", 1000000 );
a->returnToRoot();
- a->gotoNode( "VeraHatMich" );
a->remove( "VeraHatMichL1eb." );
+ a->gotoNode( "VeraHatMich" );
CPPUNIT_ASSERT ( a->suggestAutoCompletion().isEmpty() );
a->goBack();