From 18d5ffe00863faf16c7f4e9705d55fdb314eec2e Mon Sep 17 00:00:00 2001 From: DEMAREY Christophe Date: Wed, 19 Jun 2024 08:48:45 +0200 Subject: [PATCH] rename for: into widgetFor: --- src/Interactions-Tests/SpecInteractionTest.class.st | 10 +++++----- src/Interactions-Widgets/SpecInteraction.class.st | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Interactions-Tests/SpecInteractionTest.class.st b/src/Interactions-Tests/SpecInteractionTest.class.st index 666ea3a..97e697b 100644 --- a/src/Interactions-Tests/SpecInteractionTest.class.st +++ b/src/Interactions-Tests/SpecInteractionTest.class.st @@ -31,7 +31,7 @@ SpecInteractionTest >> testCanOpenAConfirmation [ message: 'Are you sure you want to delete this file?'; yesLabel: 'delete'. - widget := backend for: confirm. + widget := backend widgetFor: confirm. widget doInteraction. window := widget window. @@ -49,7 +49,7 @@ SpecInteractionTest >> testCanOpenAFileRequest [ filter: '.image'; currentFolder: FileLocator home. - widget := backend for: fileRequest. + widget := backend widgetFor: fileRequest. widget doInteraction. window := widget window. @@ -66,7 +66,7 @@ SpecInteractionTest >> testCanOpenAnInformation [ title: 'Some confirmation needed'; message: 'Do you want to proceed?'. - widget := backend for: inform. + widget := backend widgetFor: inform. widget doInteraction. window := widget window. @@ -88,7 +88,7 @@ SpecInteractionTest >> testCanSelectAFile [ currentFolder: fs root; yourself. - widget := backend for: fileRequest. + widget := backend widgetFor: fileRequest. widget doInteraction. widget selectFile: bImage. file := widget confirm. @@ -110,7 +110,7 @@ SpecInteractionTest >> testCanSelectAFolder [ currentFolder: fs root; yourself. - widget := backend for: fileRequest. + widget := backend widgetFor: fileRequest. widget doInteraction. widget selectFile: bFolder. folder := widget confirm. diff --git a/src/Interactions-Widgets/SpecInteraction.class.st b/src/Interactions-Widgets/SpecInteraction.class.st index 0e68f0f..bca6e70 100644 --- a/src/Interactions-Widgets/SpecInteraction.class.st +++ b/src/Interactions-Widgets/SpecInteraction.class.st @@ -19,7 +19,7 @@ SpecInteraction class >> default [ ] { #category : 'querying' } -SpecInteraction >> for: aUserInteraction [ +SpecInteraction >> widgetFor: aUserInteraction [ ^ aUserInteraction widgetFor: self ]