-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Valentin Doering
committed
Jul 17, 2021
1 parent
a58ce44
commit 7c7ddfb
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testHasButtons.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
testing-after-crash | ||
testHasButtons | ||
self assert: #(( 'Recover unsnapshoted (lost) changes' #recoverChanges #alwaysEnabled 'Recovers all changes that were saved but not included in any Snapshot with for e.g. a Worldmenu save. These changes will not currently be in the Image. Click to recover them') | ||
( 'Browse changes' #browseChanges #alwaysEnabled | ||
'Brows the changes that were made to the image')) equals: CRAfterCrashHelper new buttons |
10 changes: 10 additions & 0 deletions
10
...esReloaded-Tests.package/CRBrowserTest.class/instance/testOpensChangesBrowserAndCloses.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
testing-after-crash | ||
testOpensChangesBrowserAndCloses | ||
|window achelper| | ||
window := CRAfterCrashHelper open. | ||
self assert: (World submorphs contains: [:a | (a model class) = CRAfterCrashHelper]). | ||
achelper := window model. | ||
achelper browseChanges. | ||
self assert: (World submorphs contains: [:a | (a model class) = CRAfterCrashHelper]) not. | ||
self assert: (World submorphs contains: [:a | (a model class) = CRBrowser]). | ||
(World submorphs do: [:a | ((a model class) = CRBrowser) ifTrue: [a closeBoxHit]]). |
7 changes: 7 additions & 0 deletions
7
packages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testOpensInWorld.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
testing-after-crash | ||
testOpensInWorld | ||
|window| | ||
window := CRAfterCrashHelper open. | ||
self assert: (World submorphs contains: [:a | (a model class) = CRAfterCrashHelper]). | ||
window delete. | ||
self assert: (World submorphs contains: [:a | (a model class) = CRAfterCrashHelper]) not. |
3 changes: 3 additions & 0 deletions
3
packages/ChangesReloaded-Tests.package/CRBrowserTest.class/instance/testTokenFileExists.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing-after-crash | ||
testTokenFileExists | ||
self assert: (FileDirectory default fileOrDirectoryExists: 'unSnapshotedChanges.cb') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters