summaryrefslogtreecommitdiffstats
path: root/sfx2/qa
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-12 15:41:15 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-12 15:41:15 +0100
commitb3a06bad053a7e763139783e5a0885d7df6bb54d (patch)
treeb15decdeed482e1a6f4d5b9bb3482822aacd5e12 /sfx2/qa
parentundoapi: mutex.h => mutex.hxx / deliver mutex.hxx (diff)
downloadcore-b3a06bad053a7e763139783e5a0885d7df6bb54d.tar.gz
core-b3a06bad053a7e763139783e5a0885d7df6bb54d.zip
undoapi: delegate UndoManagerHelper's (modifying) API calls into a dedicated thread, serializing them this way
Diffstat (limited to 'sfx2/qa')
-rwxr-xr-xsfx2/qa/complex/sfx2/UndoManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/qa/complex/sfx2/UndoManager.java b/sfx2/qa/complex/sfx2/UndoManager.java
index 421111e88f4e..c86ceef5a1ac 100755
--- a/sfx2/qa/complex/sfx2/UndoManager.java
+++ b/sfx2/qa/complex/sfx2/UndoManager.java
@@ -456,6 +456,7 @@ public class UndoManager
public void leftHiddenContext( UndoManagerEvent i_event )
{
assertFalse( "|leftHiddenContext| called after document was disposed", m_isDisposed );
+ assertEquals( "|leftHiddenContext| is not expected to notify an action title", 0, i_event.UndoActionTitle.length() );
m_activeUndoContexts.pop();
assertEquals( "different opinions on the context nesting level (after leaving)",
@@ -467,6 +468,7 @@ public class UndoManager
public void cancelledContext( UndoManagerEvent i_event )
{
assertFalse( "|cancelledContext| called after document was disposed", m_isDisposed );
+ assertEquals( "|cancelledContext| is not expected to notify an action title", 0, i_event.UndoActionTitle.length() );
m_activeUndoContexts.pop();
assertEquals( "different opinions on the context nesting level (after cancelling)",
@@ -590,6 +592,7 @@ public class UndoManager
// close the document, ensure the Undo manager listener gets notified
m_currentDocument.close();
+ m_currentDocument = null;
assertTrue( "document is closed, but the UndoManagerListener has not been notified of the disposal", m_undoListener.isDisposed() );
}