From edb57aae4be8253104c5dc9282234cc3f12c7ece Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 15 Dec 2010 09:14:12 +0100 Subject: undoapi: #i115383#: enable writer undo test --- sfx2/qa/complex/sfx2/UndoManager.java | 2 +- sfx2/qa/complex/sfx2/undo/WriterDocumentTest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sfx2/qa/complex/sfx2/UndoManager.java b/sfx2/qa/complex/sfx2/UndoManager.java index 42461c9365bb..f3625747dd13 100755 --- a/sfx2/qa/complex/sfx2/UndoManager.java +++ b/sfx2/qa/complex/sfx2/UndoManager.java @@ -123,7 +123,7 @@ public class UndoManager public void checkWriterUndo() throws Exception { m_currentTestCase = new WriterDocumentTest( getORB() ); - impl_checkUndo( true ); + impl_checkUndo( false ); } // ----------------------------------------------------------------------------------------------------------------- diff --git a/sfx2/qa/complex/sfx2/undo/WriterDocumentTest.java b/sfx2/qa/complex/sfx2/undo/WriterDocumentTest.java index 100d36382d39..702fb85ebb11 100755 --- a/sfx2/qa/complex/sfx2/undo/WriterDocumentTest.java +++ b/sfx2/qa/complex/sfx2/undo/WriterDocumentTest.java @@ -74,6 +74,7 @@ public class WriterDocumentTest extends DocumentTestBase // insert the table into the doc docText.insertTextContent( cursor, textTable, false ); + ++expectedUndoActions; //FIXME this will create 2 actions! currently the event is sent for every individual action; should it be sent for top-level actions only? how many internal actions are created is an implementation detail! ++expectedUndoActions; // write some content into the center cell -- cgit