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 F0B0DD656 for ; Sat, 8 Dec 2012 01:40:50 +0000 (UTC) Received: (qmail 94371 invoked by uid 500); 8 Dec 2012 01:40:50 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 94334 invoked by uid 500); 8 Dec 2012 01:40:50 -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 94326 invoked by uid 99); 8 Dec 2012 01:40:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Dec 2012 01:40:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gosmith@adobe.com designates 64.18.1.237 as permitted sender) Received: from [64.18.1.237] (HELO exprod6og121.obsmtp.com) (64.18.1.237) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Dec 2012 01:40:39 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob121.postini.com ([64.18.5.12]) with SMTP ID DSNKUMKagbeGj/rZN3rry2bKFKmjFEBtWJZ5@postini.com; Fri, 07 Dec 2012 17:40:18 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qB81bN1v029322 for ; Fri, 7 Dec 2012 17:37:23 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id qB81eEXM009531 for ; Fri, 7 Dec 2012 17:40:15 -0800 (PST) Received: from nambx05.corp.adobe.com ([10.8.189.124]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Fri, 7 Dec 2012 17:40:14 -0800 From: Gordon Smith To: "flex-dev@incubator.apache.org" Date: Fri, 7 Dec 2012 17:40:14 -0800 Subject: New Falcon feature tests Thread-Topic: New Falcon feature tests Thread-Index: Ac3U45MvcgOz/PVURXqUO/R9E858kQ== Message-ID: <149F8129B58B2D418508E63117D9C5419B5B623C4A@nambx05.corp.adobe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_149F8129B58B2D418508E63117D9C5419B5B623C4Anambx05corpad_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_149F8129B58B2D418508E63117D9C5419B5B623C4Anambx05corpad_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Today I added feature tests for the and tags. (Each MXML fea= ture test compiles a tiny MXML app that tests one particular feature, runs = it in the standalone player, and checks that it ran correctly.) Most cases of work, but I discovered something I never knew: The <= Object> tag doesn't just allow code like or 1 2 or 1 2 (which are the three ways to write { a: 1, b: 2 } in MXML), but also allows abc 123 etc. I'll make Falcon support text-inside-Object-tag at some point, but for now = the behavior of the old compiler when you do this is very quirky in two way= s: (1) it treats the 123 as a string, not an integer; it trims the whitespa= ce around the 123 while not around the abc. Maybe we'll fix this in MXML 20= 1X! The tag isn't in good shape... even simple examples create a SWF that= throws a TypeError at runtime. To make it easier to fix codegen problems like this, I've made it possible = to inspect a dump of the generated ABC in the debugger. This is similar to = how the debugger can show you an entire AST or an entire file scope. - Gordon --_000_149F8129B58B2D418508E63117D9C5419B5B623C4Anambx05corpad_--