Skip to content

Commit

Permalink
fix examples [feenkcom/gtoolkit#3983]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Oct 22, 2024
1 parent 013a429 commit b253760
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ GtFilterElementByScripterExamples >> classCoderAddMethodProtocolFilter [
assertFilterModelAtIndex: 2 itemsCountIs: 4;
clickOnFilterSettingsAtIndex: 2;
clickOnDropdownFilterItemAtIndex: 3;
assertFilterModelAtIndex: 2
assertFilterModelNamed: GtSearchMethodCategoryFilter filterName
selectedValueIs: (GtFilterModelStringItem new string: 'initialization');
assertFilterModelsCountIs: 2;
assertMethodsUpToFilterModel;
assertMethodProtocolFilterModel;
play ].
Expand Down Expand Up @@ -68,9 +67,8 @@ GtFilterElementByScripterExamples >> classCoderSelectProtoObjectSuperclass [
aScripter filterStep
clickOnFilterSettingsAtIndex: 1;
clickOnDropdownFilterItemAtIndex: 4;
assertFilterModelAtIndex: 1
assertFilterModelNamed: GtSearchInheritedMethodsFilter filterName
selectedValueIs: (GtFilterModelClassItem new itemClass: ProtoObject);
assertFilterModelsCountIs: 2;
assertMethodsUpToFilterModel;
assertMethodProtocolFilterModel;
play.
Expand Down
4 changes: 2 additions & 2 deletions src/GToolkit-Pharo-Coder-UI/GtFilterStep.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ Extension { #name : #GtFilterStep }

{ #category : #'*GToolkit-Pharo-Coder-UI' }
GtFilterStep >> assertMethodProtocolFilterModel [
^ self assertFilterModelLabeled: GtSearchMethodCategoryFilter filterName
^ self assertFilterModelNamed: GtSearchMethodCategoryFilter filterName
]

{ #category : #'*GToolkit-Pharo-Coder-UI' }
GtFilterStep >> assertMethodsUpToFilterModel [
^ self assertFilterModelLabeled: GtSearchMethodCategoryFilter filterName
^ self assertFilterModelNamed: GtSearchInheritedMethodsFilter filterName
]

{ #category : #'*GToolkit-Pharo-Coder-UI' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GtSearchInheritedMethodsFilter class >> filterDescriptor2For: aMethodsCoder [
items: aCurrentClass withAllSuperclasses;
selectedItem: aCurrentClass;
displayAllItems;
name: 'Methods up to';
name: self filterName;
order: 16
]

Expand All @@ -36,3 +36,8 @@ GtSearchInheritedMethodsFilter class >> filterDescriptorFor: aMethodsCoder [
emptyDefaultValue: currentClass name;
beNotDefault
]

{ #category : #'*GToolkit-Pharo-Coder-UI' }
GtSearchInheritedMethodsFilter class >> filterName [
^ 'Methods up to'
]

0 comments on commit b253760

Please sign in to comment.