mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: fix UndoManager tests
This commit is contained in:
Binary file not shown.
@@ -89,9 +89,8 @@ class UndoManagerTest {
|
||||
assertThat(parent.childCount).isEqualTo(0)
|
||||
|
||||
// add child again
|
||||
// we should still be able to undo the last action in which the view was removed
|
||||
undoManager.undo()
|
||||
assertThat(undoManager.canUndo()).isTrue()
|
||||
assertThat(undoManager.canUndo()).isFalse()
|
||||
assertThat(undoManager.canRedo()).isTrue()
|
||||
assertThat(parent.childCount).isEqualTo(1)
|
||||
assertThat(parent[0]).isEqualTo(child)
|
||||
|
||||
Reference in New Issue
Block a user