[tools] testbot/web: Tweak the Login and ResetPassword GetInputType() formatting.
Francois Gouget
fgouget at codeweavers.com
Thu Apr 21 17:02:56 CDT 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/web/Login.pl | 9 +++------
testbot/web/ResetPassword.pl | 9 +++------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/testbot/web/Login.pl b/testbot/web/Login.pl
index 837617d8d..7b9a6ffeb 100644
--- a/testbot/web/Login.pl
+++ b/testbot/web/Login.pl
@@ -65,12 +65,9 @@ sub GetInputType($$)
{
my ($self, $PropertyDescriptor) = @_;
- if ($PropertyDescriptor->GetName() eq "Password")
- {
- return "password";
- }
-
- return $self->SUPER::GetInputType($PropertyDescriptor);
+ my $PropertyName = $PropertyDescriptor->GetName();
+ return $PropertyName eq "Password" ? "password" :
+ $self->SUPER::GetInputType($PropertyDescriptor);
}
sub GenerateFields($)
diff --git a/testbot/web/ResetPassword.pl b/testbot/web/ResetPassword.pl
index 4f672ea94..081e27f19 100644
--- a/testbot/web/ResetPassword.pl
+++ b/testbot/web/ResetPassword.pl
@@ -63,12 +63,9 @@ sub GetInputType($$)
{
my ($self, $PropertyDescriptor) = @_;
- if (substr($PropertyDescriptor->GetName(), 0, 8) eq "Password")
- {
- return "password";
- }
-
- return $self->SUPER::GetInputType($PropertyDescriptor);
+ my $PropertyName = substr($PropertyDescriptor->GetName(), 0, 8);
+ return $PropertyName eq "Password" ? "password" :
+ $self->SUPER::GetInputType($PropertyDescriptor);
}
sub GetActions($)
--
2.30.2
More information about the wine-devel
mailing list