diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-05-22 16:23:24 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-05-23 11:28:40 +0200 |
commit | bca6c6d26764a919ad1df36e4f636963f9b9324a (patch) | |
tree | ace242b45f2f3ee3d98aa14e63d374fd6d6f8fe1 /sfx2/qa | |
parent | a8d1349bf5d84fc7170a80813d4edcf562184d48 (diff) |
fdo#35663: be more explicit on asserts
Diffstat (limited to 'sfx2/qa')
-rwxr-xr-x | sfx2/qa/complex/sfx2/UndoManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/qa/complex/sfx2/UndoManager.java b/sfx2/qa/complex/sfx2/UndoManager.java index f37530aba726..c64cd7022e25 100755 --- a/sfx2/qa/complex/sfx2/UndoManager.java +++ b/sfx2/qa/complex/sfx2/UndoManager.java @@ -781,6 +781,7 @@ public class UndoManager m_currentTestCase.doSingleModification(); assertEquals( "when the Undo manager is locked, no implicit additions should happen", 0, m_undoListener.getUndoActionsAdded() ); + assertTrue( "Undo manager gets unlocked as a side effect of performing a simple operation", i_undoManager.isLocked() ); i_undoManager.unlock(); assertEquals( "unlock is not expected to add collected actions - they should be discarded", 0, m_undoListener.getUndoActionsAdded() ); |