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 8BF6ED47F for ; Mon, 17 Dec 2012 18:37:21 +0000 (UTC) Received: (qmail 91196 invoked by uid 500); 17 Dec 2012 18:37:20 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 91017 invoked by uid 500); 17 Dec 2012 18:37:20 -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 90718 invoked by uid 99); 17 Dec 2012 18:37:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 18:37:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.175] (HELO mail-ia0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 18:37:00 +0000 Received: by mail-ia0-f175.google.com with SMTP id z3so5542300iad.6 for ; Mon, 17 Dec 2012 10:36:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=zcWRdTPENl/163HiPXfJl2RJNwaQ+oZKX580gaZqD00=; b=OOtEQRTQGfKwmVtya9J+StkY5ecuoF9TYwtYJpSq7A7wtWCSIBCiEa9VsU3bp/BAJU 1EP+zr9/RLzykGbhXYQf8OzScOVJynUN18H9zOHLXVuY0XKcbSDvB1yY4r9FsMbugEsd xcGR64NiXdCGWmSjMs0k0zPZc2dyMiIkzZLG73rQKyI+NrpmrAkClDZnp9ViPxz3H/yb ko5ilv8fSAoYFbIakohxoU5M2GylootuToQg9qTYKsRMtT9FkqoxemuQuI7fJGSPMwXy tZM3HNoNr9wEm2+HayexUXOJexv0aiR5RoFZul/BA8vrcZ5itgtxQ0yR2dv/xssDbjZn OXFQ== MIME-Version: 1.0 Received: by 10.50.57.232 with SMTP id l8mr10250187igq.54.1355769399800; Mon, 17 Dec 2012 10:36:39 -0800 (PST) Received: by 10.64.34.234 with HTTP; Mon, 17 Dec 2012 10:36:39 -0800 (PST) In-Reply-To: <20121217132106.58923k2gvfnegzo2@franklin.liquidweb.com> References: <20121217132106.58923k2gvfnegzo2@franklin.liquidweb.com> Date: Mon, 17 Dec 2012 19:36:39 +0100 Message-ID: Subject: Re: [FlexJS] Testing AS -> JS translation From: Erik de Bruin To: "flex-dev@incubator.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl+t/4Q3hanOPr2dFUaWXKwxpHNdvHcadjcgmu72zPIcY3wRu0axlRtFCUL73Vy7lm9iXH3 X-Virus-Checked: Checked by ClamAV on apache.org Mike, I try to talk about FalconJx, as I believe you call your "version" of the AS -> JS compiler when I talk about your work. I refer to FlexJS when I talk about the project to allow the user to write in an AS based framework (either based on Alex's approach or a new one, based on my experiences setting this up). Am I correct in assuming that the FalconJx compiler will take any AS files and translate it to JS using the rules we're working on in the Wiki? I mean, I can build a framework in AS (like Alex's, or maybe even use Flex itself) and build a complimentary framework in JS (like Alex did) and as long as the functionalities of these frameworks match, the user code can be put through FalconJx and the output should run, correct? How about MXML? EdB On Mon, Dec 17, 2012 at 7:21 PM, Michael Schmalle wrote: > That's a bit up in the air right now I think. > > The way I'm writing tests is AS -> JS google closure. But I'm right in the > middle of refactoring the emitter classes. > > The tests I'm writing can be run from ant or whatever, just like the Falcon > tests. I just haven't made a build file yet. > > Have you looked at the source code for FalconJx and it's tests? > > We don't want to duplicate work but I need to write these tests first. All I > know is, once I get these emitters refactored, the JS output is going to be > what the closure compiler wants. So we could just write an extension in the > assertOut() method that maybe could tests with Jasmine as well? I don't know > I have never used Jasmine testing. > > PS, my days with FalconJS are numbered, I've decided it's to complicated for > what I see a relatively simple solution for just getting plain JS, so I > probably won't be working on that code base at all, I think Alex is doing > something with the code. > > Mike > > > Quoting Erik de Bruin : > >> Hi, >> >> I'm trying to figure out how to build tests for the AS to JS cross >> compilation. >> >> Should we write AS "strings" and have a script put those through the >> FalconJS/FalconJx compiler and compare the result with a pre-defined >> "intermediate JS" result? If so, what would be the best tool to write >> those tests in? Ant? Shell script? Something else? >> >> I'll be writing the JS tests in Jasmine (mainly because that's what I >> know), to test the result from putting the FalconJx output through the >> Google Closure Compiler and later on the Closure Builder. >> >> Preferably we would be able to integrate both test suites, so we can >> test AS -> "final JS" in one go. >> >> Thoughts? >> >> EdB >> >> >> >> -- >> Ix Multimedia Software >> >> Jan Luykenstraat 27 >> 3521 VB Utrecht >> >> T. 06-51952295 >> I. www.ixsoftware.nl >> > > -- > Michael Schmalle - Teoti Graphix, LLC > http://www.teotigraphix.com > http://blog.teotigraphix.com > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl