Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A09BD1C6 for ; Sat, 10 Nov 2012 16:13:20 +0000 (UTC) Received: (qmail 9796 invoked by uid 500); 10 Nov 2012 16:13:19 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 9549 invoked by uid 500); 10 Nov 2012 16:13:14 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 9503 invoked by uid 99); 10 Nov 2012 16:13:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 16:13:12 +0000 Date: Sat, 10 Nov 2012 16:13:12 +0000 (UTC) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_THOMAS_=28JIRA=29?= To: flex-dev@incubator.apache.org Message-ID: <1697996774.96538.1352563992390.JavaMail.jiratomcat@arcas> In-Reply-To: <264738453.77212.1352239692247.JavaMail.jiratomcat@arcas> Subject: [jira] [Comment Edited] (FLEX-33242) Mustella tests failed: when your computer language doesn't match the expected localized error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33242?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1349= 1940#comment-13491940 ]=20 Fr=C3=A9d=C3=A9ric THOMAS edited comment on FLEX-33242 at 11/10/12 4:12 PM: ------------------------------------------------------------------ As example:=20 =09=09 =09=09=09 =09=09=09=09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09 =09=09 In this case, the locale is set to french but the AssertError value is expe= cted to be in english, one solution could be to set the expected error valu= e to be in french but we don't want test the locale capabilities here, we t= est read-only country property. The solution would be to be able to do such: =09=09=09 =09=09=09=09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09 =09=09 Doing so it means AssertError will test that the returning error message sh= ould contain all of the elements of the array, stripping out the french par= t of the error message. An other one : In this case no locale has been set but my computer is in french, the raise= d error will output a error mesage in french whereas an english one is expe= cted. This kind of tests don't work either: =20 =20 =20 =20 Probably because my OS is in french, the fr_FR is return first, en_US was e= xpected. What I'm proposing is that the value could take a string as parameter and a= cts as it acts now (it should return the exact value) or could take an arra= y (which means, it should contain all of the elements of the array). =20 was (Author: doublefx): As example:=20 =09=09 =09=09=09 =09=09=09=09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09 =09=09 In this case, the locale is set to french but the AssertError value is expe= cted to be in english, one solution could be to set the expected error valu= e to be in french but we don't want test the locale capabilities here, we t= est read-only country property. The solution would be to be able to do such: =09=09=09 =09=09=09=09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09 =09=09 Doing so it means AssertError will test that the returning error message sh= ould contain all of the elements of the array, stripping out the french par= t of the error message. An other one : In this case no locale has been set but my computer is in french, the raise= d error will output a error mesage in french whereas an english one is expe= cted. What I'm proposing is that the value could take a string as parameter and a= cts as it acts now (it should return the exact value) or could take an arra= y (which means, it should contain all of the elements of the array). =20 > Mustella tests failed: when your computer language doesn't match the expe= cted localized error > -------------------------------------------------------------------------= -------------------- > > Key: FLEX-33242 > URL: https://issues.apache.org/jira/browse/FLEX-33242 > Project: Apache Flex > Issue Type: Bug > Components: Mustella > Affects Versions: Apache Flex 4.9.0 > Reporter: Fr=C3=A9d=C3=A9ric THOMAS > Priority: Critical > Labels: test > Attachments: FLEX-33242.patch > > > Mustella tests fail when your computer language doesn't match the expecte= d localized error -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira