Skip Menu |

This queue is for tickets about the Win32-GuiTest CPAN distribution.

Report information
The Basics
Id: 44643
Status: resolved
Priority: 0/
Queue: Win32-GuiTest

People
Owner: Nobody in particular
Requestors: stro [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: "Decimal symbol" in locale can make test failure
Hi Dima, If Windows locale has "Decimal symbol" set to anything but ".", test 02_calc.t fails because it expects "1969. ". In Russian/Ukrainian regional settings (maybe some others too), comma is used instead of dot, so "1969, " is returned. It would be a good idea to check HKCU/Control Panel/International/sDecimal to avoid such problem. -- Serguei Trouchelle
Subject: Re: [rt.cpan.org #44643] "Decimal symbol" in locale can make test failure
Date: Sat, 28 Mar 2009 15:42:43 +0100
To: Serguei Trouchelle via RT <bug-Win32-GuiTest [...] rt.cpan.org>
From: Dmitry Karasik <dmitry [...] karasik.eu.org>
Please check if the followign patch solves the problem ( I can't repropduce it on my machine). If yes, I'll commit. --- 02_calc.t 1 Oct 2008 11:10:12 -0000 1.2 +++ 02_calc.t 28 Mar 2009 14:41:12 -0000 @@ -43,7 +43,7 @@ ($edit) = FindWindowLike($calc, undef, "Edit|Static"); ok(defined $edit, "found editor") or skip "could not find Edit window", 1; ok(IsWindow($edit), "Editor is a window"); - is(WMGetText($edit), "1969. ", "1969 found"); + ok(WMGetText($edit) =~ /^1969. $/, "1969 found"); } #Find the Hex radio button @@ -95,7 +95,7 @@ SKIP: { skip "No Dec/bin/Oct/Hex button(s)", 9 if not ($dec and $bin and $oct and $hex); PushButton("Dec"); sleep 1; - is(WMGetText($edit), "1969. ", "1969 in dec found"); + ok(WMGetText($edit) =~ /^1969. $/, "1969 found"); ok(IsCheckedButton($dec)); PushButton("Hex"); sleep 1; -- Sincerely, Dmitry Karasik
Yes, it's ok now. On Sat Mar 28 10:43:03 2009, dmitry@karasik.eu.org wrote: Show quoted text
> Please check if the followign patch solves the problem ( I can't > repropduce it > on my machine). If yes, I'll commit.
[...] -- Serguei Trouchelle
fix shall be available in 1.57