-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
bc216c5
commit 238724a
Showing
4 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
packages/Presenter-Tests.package/PSPresentationToolTest.class/instance/testNextSlide.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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
slide navigation tests | ||
testNextSlide | ||
|
||
self createSlide. | ||
self selectSlideNumber: 1. | ||
self assert: self currentSlide = self slides first. | ||
self | ||
createSlide; | ||
selectSlideNumber: 1; | ||
assert: self currentSlide = self slides first. | ||
self tool nextSlide. | ||
self assert: self currentSlide = self slides second |
12 changes: 7 additions & 5 deletions
12
packages/Presenter-Tests.package/PSPresentationToolTest.class/instance/testSelectSlide.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
slide navigation tests | ||
testSelectSlide | ||
|
||
self createSlide. | ||
self selectSlideNumber: 1. | ||
self assert: self currentSlide = self slides first. | ||
self | ||
createSlide; | ||
selectSlideNumber: 1; | ||
assert: self currentSlide = self slides first. | ||
|
||
self selectSlideNumber: 2. | ||
self assert: self currentSlide = self slides second | ||
self | ||
selectSlideNumber: 2; | ||
assert: self currentSlide = self slides second |
17 changes: 10 additions & 7 deletions
17
...es/Presenter-Tests.package/PSPresentationToolTest.class/instance/testSelectSlideClamps.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
slide navigation tests | ||
testSelectSlideClamps | ||
|
||
self createSlide. | ||
self selectSlideNumber: 3. | ||
self assert: self tool currentSlide = self slides last. | ||
self | ||
createSlide; | ||
selectSlideNumber: 3; | ||
assert: self tool currentSlide = self slides last. | ||
|
||
self selectSlideNumber: 0. | ||
self assert: self currentSlide = self slides first. | ||
self | ||
selectSlideNumber: 0; | ||
assert: self currentSlide = self slides first. | ||
|
||
self selectSlideNumber: -1. | ||
self assert: self currentSlide = self slides first. | ||
self | ||
selectSlideNumber: -1; | ||
assert: self currentSlide = self slides first. |
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