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 A3FD7D7A4 for ; Mon, 5 Nov 2012 07:35:43 +0000 (UTC) Received: (qmail 55544 invoked by uid 500); 5 Nov 2012 07:35:42 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 55504 invoked by uid 500); 5 Nov 2012 07:35:42 -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 55476 invoked by uid 99); 5 Nov 2012 07:35:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 07:35:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webdoublefx@hotmail.com designates 65.55.111.85 as permitted sender) Received: from [65.55.111.85] (HELO blu0-omc2-s10.blu0.hotmail.com) (65.55.111.85) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 07:35:32 +0000 Received: from BLU162-DS9 ([65.55.111.73]) by blu0-omc2-s10.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 4 Nov 2012 23:35:11 -0800 X-Originating-IP: [82.247.153.175] X-EIP: [fRvqhosH9jL5iA/IXr+UMpID12WipWHY] X-Originating-Email: [webdoublefx@hotmail.com] Message-ID: From: =?iso-8859-1?Q?Fr=E9d=E9ric_THOMAS?= To: References: In-Reply-To: Subject: Re: About Flex runtime Date: Mon, 5 Nov 2012 08:35:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-OriginalArrivalTime: 05 Nov 2012 07:35:11.0302 (UTC) FILETIME=[166E3660:01CDBB28] X-Virus-Checked: Checked by ClamAV on apache.org I'm for the last proposal and I was thinking about to create an other assertion like AssertErrorContains which would take an Array as parameter to check the error value against. Something like What do you think ? -----Message d'origine----- From: Alex Harui Sent: Monday, November 05, 2012 6:12 AM To: flex-dev@incubator.apache.org Subject: Re: About Flex runtime On 11/4/12 6:51 PM, "Fr�d�ric THOMAS" wrote: > 3- I've still got 48 failures, that's because they expect english error > text > to be return and my debug flash player version output them in french. > > [java] resources/Locale/Properties/Locale_Properties_variant > Locale_variant_is_read_only Failed AssertErro(body:ste > p 2) Expected Error ReferenceError: Error #1074: Illegal write to > read-only > property variant on mx.resources.Locale., g > ot ReferenceError: Error #1074: Ecriture ill�gale dans une propri�t� en > lecture seule variant sur mx.resources.Locale. > Thanks for finding this issue. I think we should change AssertError to clip off everything after the second ":". Then it would compare just "ReferenceError: Error #1074:". Another option is to create a low-level sequence of code to generate the correct answer. I did that on some tests already. There were some tests that would sort some french strings and different Mac OS versions reported different ordering due to some unicode standard change. The goal of those tests were to make sure all of the Flex sorting code would return the same order as the player would on a simple sort of some strings in an Array so the test sets up a low-level array, sorts it, and makes that the "correct answer". You could do somehing similar by setting up a simple AS class with a read-only property, try to write to it, capture the error message, determine the pattern, convert it to be the correct answer for a read-only property on the mx.resource.Locale class. Yet another option is the first option but also add new properties that require that certain non-translatable strings be in the remainder of the error message. So, a ReferenceError of #1074 that has the strings 'variant' and 'mx.resource.Locale' in it. That would really limit false results. I think I like this last one best. How about you? -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui