-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
browser: hide error results unless displaying all tests
- Loading branch information
Showing
13 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SL2Result.class/instance/isError.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,4 @@ | ||
testing | ||
isError | ||
|
||
^ self resultData isError |
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
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/childrenForTestNode..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
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/classLabels.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,6 +1,6 @@ | ||
accessing - toolbuilder | ||
classLabels | ||
<uses: #(classes results)> | ||
<uses: #(classes displayedResults)> | ||
|
||
^ self classes collect: [:class | | ||
self labelForClass: class] |
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/classes.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
6 changes: 6 additions & 0 deletions
6
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/displayedResults.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,6 @@ | ||
accessing | ||
displayedResults | ||
<uses: #(results)> | ||
|
||
self shouldDisplayAllTests ifTrue: [^ self results]. | ||
^ self results reject: [:result | result isError] |
4 changes: 2 additions & 2 deletions
4
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/displayedTests.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,6 +1,6 @@ | ||
accessing | ||
displayedTests | ||
<uses: #(results shouldDisplayAllTests tests)> | ||
<uses: #(displayedResults shouldDisplayAllTests tests)> | ||
|
||
self shouldDisplayAllTests ifTrue: [^ self tests]. | ||
^ self results collect: #test as: Set | ||
^ self displayedResults collect: #test as: Set |
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/messages.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
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/resultsForTestNode..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,7 +1,7 @@ | ||
accessing | ||
resultsForTestNode: node | ||
|
||
^ self results select: | ||
^ self displayedResults select: | ||
(node isCategory | ||
ifFalse: [[:result | result test == node]] | ||
ifTrue: [[:result | result test categories anySatisfy: [:category | category includesCategory: node]]]) |
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/resultsForTestSelection.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,6 +1,6 @@ | ||
accessing | ||
resultsForTestSelection | ||
|
||
self hasTestNodeSelected ifFalse: [^ self results]. | ||
self hasTestNodeSelected ifFalse: [^ self displayedResults]. | ||
|
||
^ self resultsForTestNode: self selectedTestNode |
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/selectedMessage.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
2 changes: 1 addition & 1 deletion
2
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/testText.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
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