diff options
| author | Josh Ferrell <josh@vector35.com> | 2020-07-20 12:38:40 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2020-07-20 12:38:40 -0400 |
| commit | e5dbc3299937a1912edbe7ac62cff9972daa0966 (patch) | |
| tree | 50456c9ab8d16d8aeb1847a019d7ebc54c8fd192 | |
| parent | 308caf1f5b3f8f02ebb44c0c43a838e0709200a1 (diff) | |
Fix persistent undo unit test
| -rw-r--r-- | suite/testcommon.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/suite/testcommon.py b/suite/testcommon.py index 6668471f..b633ede2 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -953,15 +953,18 @@ class VerifyBuilder(Builder): bv.begin_undo_actions() bv.functions[0].set_comment(bv.functions[0].start, "Function start") - bv.functions[0].set_comment(bv.functions[0].start, "Function start!") bv.commit_undo_actions() + comments = self.get_comments(bv) + functions = self.get_functions(bv) + bv.begin_undo_actions() - bv.add_function(bv.functions[0].start + 4) + bv.functions[0].set_comment(bv.functions[0].start, "Function start!") bv.commit_undo_actions() - comments = self.get_comments(bv) - functions = self.get_functions(bv) + bv.begin_undo_actions() + bv.create_user_function(bv.start) + bv.commit_undo_actions() bv.create_database(temp_name) bv.file.close() |
