-
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.
Merge pull request #97 from hpi-swa-teaching/tests
wrote tests vor unsupported Errors
- Loading branch information
Showing
12 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
19 changes: 19 additions & 0 deletions
19
...MEXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecGetSelectedUnsupported.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,19 @@ | ||
tests | ||
testSpecGetSelectedUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec getSelected: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec getSelected] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
...luggableMultiSelectionTreeMorphTests.class/instance/testSpecSetSelectedPathUnsupported.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,19 @@ | ||
tests | ||
testSpecSetSelectedPathUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec setSelectedPath: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec setSelectedPath] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
...EXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecautoDeselectUnsupported.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,19 @@ | ||
tests | ||
testSpecautoDeselectUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec autoDeselect: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec autoDeselect] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
...ge/MEXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecdragItemUnsupported.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,31 @@ | ||
tests | ||
testSpecdragItemUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec dragItem] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec dragItem: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec dropAccept: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := true. | ||
[pluggableTreeSpec dropAccept] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
.../MEXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecdropAcceptUnsupported.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,19 @@ | ||
tests | ||
testSpecdropAcceptUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec dropAccept: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec dropAccept] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
...ge/MEXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecdropItemUnsupported.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,19 @@ | ||
tests | ||
testSpecdropItemUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec dropItem: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec dropItem] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
...ggableMultiSelectionTreeMorphTests.class/instance/testSpecsetSelectedParentUnsupported.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,19 @@ | ||
tests | ||
testSpecsetSelectedParentUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec setSelectedParent: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec setSelectedParent] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
...MEXPluggableMultiSelectionTreeMorphTests.class/instance/testSpecsetSelectedUnsupported.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,19 @@ | ||
tests | ||
testSpecsetSelectedUnsupported | ||
|
||
|pluggableTreeSpec bool| | ||
|
||
pluggableTreeSpec := MEXPluggableMultiSelectionTreeSpec new. | ||
bool := false. | ||
[pluggableTreeSpec setSelected: nil] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
bool := false. | ||
[pluggableTreeSpec setSelected] | ||
on: MEXUnsupportedError | ||
do: [:error| bool := true]. | ||
self assert: bool equals: true. | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
...ts.package/MEXPluggableMultiSelectionTreeMorphTests.class/instance/testkonstantsAreSet.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 @@ | ||
tests | ||
testkonstantsAreSet | ||
|
||
|pluggableTree| | ||
|
||
pluggableTree := MEXPluggableMultiSelectionTreeMorph new. | ||
self assert: (pluggableTree basicKeyPressed: 'a') equals: true. | ||
self assert: (pluggableTree keyStroke: nil) equals: true. | ||
self assert: (pluggableTree handlesMouseOver: nil) equals: true. | ||
self assert: (pluggableTree specialKeyPressed: nil) equals: false |
13 changes: 13 additions & 0 deletions
13
...plorer-Tests.package/MEXPluggableMultiSelectionTreeMorphTests.class/methodProperties.json
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,13 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"testSpecGetSelectedUnsupported" : "JF 6/24/2022 11:47", | ||
"testSpecSetSelectedPathUnsupported" : "JF 6/24/2022 11:45", | ||
"testSpecautoDeselectUnsupported" : "JF 6/24/2022 11:42", | ||
"testSpecdragItemUnsupported" : "JF 6/24/2022 11:40", | ||
"testSpecdropAcceptUnsupported" : "JF 6/24/2022 11:41", | ||
"testSpecdropItemUnsupported" : "JF 6/24/2022 11:42", | ||
"testSpecsetSelectedParentUnsupported" : "JF 6/24/2022 11:44", | ||
"testSpecsetSelectedUnsupported" : "JF 6/24/2022 11:44", | ||
"testkonstantsAreSet" : "JF 6/24/2022 11:23" } } |
14 changes: 14 additions & 0 deletions
14
...cAPIExplorer-Tests.package/MEXPluggableMultiSelectionTreeMorphTests.class/properties.json
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,14 @@ | ||
{ | ||
"category" : "MorphicAPIExplorer-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "MEXPluggableMultiSelectionTreeMorphTests", | ||
"pools" : [ | ||
], | ||
"super" : "MEXTestCaseForUI", | ||
"type" : "normal" } |