incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Smith <gosm...@adobe.com>
Subject RE: [FALCON] Setting up unit tests correctly
Date Wed, 14 Nov 2012 01:24:49 GMT
Below are my comments about this from revision 1405210.

- Gordon

Falcon: The frameworkSWC() JUnit test in SDKSWCTests now compiles a framework.swc if you have
the environment variables FLEX_HOME and PLAYERGLBOAL_HOME set when you run it in Eclipse.

This test is not yet part of 'ant tests' because it doesn't pass, since there are currently
6 warnings:

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1382
Warning: variable definition duplicates function parameter: events.
						var events:Array = updatedItems[j].events;
						    ^

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\managers\ICursorManager.as:23
Warning: Metadata was not bound to a definition
[ExcludeClass]
^

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\managers\ISystemManagerChildManager.as:25
Warning: Metadata was not bound to a definition
[ExcludeClass];
^

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:111
Warning: Initializer value 3144134277 for type 'int' must be between -2147483648 and 2147483647
inclusive. An initial value of -1150833019 will be used instead.
            var h1:int = 0xbb67ae85;
                         ^

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:113
Warning: Initializer value 2773480762 for type 'int' must be between -2147483648 and 2147483647
inclusive. An initial value of -1521486534 will be used instead.
            var h3:int = 0xa54ff53a;
                         ^

D:\Apache\incubator\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\utils\SHA256.as:115
Warning: Initializer value 2600822924 for type 'int' must be between -2147483648 and 2147483647
inclusive. An initial value of -1694144372 will be used instead.
            var h5:int = 0x9b05688c;
                         ^

Would anybody like to volunteer to change the code in a way that it compiles cleanly in the
old compiler and in Falcon?
==========================================================================================

-----Original Message-----
From: Michael Schmalle [mailto:apache@teotigraphix.com] 
Sent: Tuesday, November 13, 2012 3:57 PM
To: flex-dev@incubator.apache.org
Subject: RE: [FALCON] Setting up unit tests correctly

Gordon,

Have you got the compile tests to pass?

Everything passes except when it gets to compile framwork.swc

I'm taking it the compiler still needs work here. :)

java.lang.AssertionError:
Expected: is <0>
      got: <6>

Loading configuration:  
C:\Users\Graphix\projects\libraries\flex\sdk\branches\develop\frameworks\projects\framework\compile-config.xml

C:\Users\Graphix\projects\libraries\flex\sdk\branches\develop\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1382
Warning: variable definition duplicates function parameter: events.
						var events:Array = updatedItems[j].events;


etc....


Mike




Quoting Gordon Smith <gosmith@adobe.com>:

> +1
>
> -----Original Message-----
> From: Carol Frampton [mailto:cframpto@adobe.com]
> Sent: Tuesday, November 13, 2012 3:08 PM
> To: flex-dev@incubator.apache.org
> Subject: Re: [FALCON] Setting up unit tests correctly
>
>
> On 11/13/12 5 :50PM, "Michael Schmalle" <apache@teotigraphix.com> wrote:
>
>> I can add it.
>>
>> Would this be create, then remove at the end of the build.xml file or 
>> svn ignore it?
>
> It should be created when falcon is built and removed when falcon is 
> cleaned. It should also be svn ignored.
>
> Carol
>
>
>>
>> Mike
>>
>>
>> Quoting Gordon Smith <gosmith@adobe.com>:
>>
>>> Sorry, I forgot to make some 'ant' target create it. Can you do that?
>>> If not, I'll try to do it on Friday.
>>>
>>> - Gordon
>>>
>>>
>>> -----Original Message-----
>>> From: Michael Schmalle [mailto:apache@teotigraphix.com]
>>> Sent: Tuesday, November 13, 2012 2:39 PM
>>> To: flex-dev@incubator.apache.org
>>> Subject: Re: [FALCON] Setting up unit tests correctly
>>>
>>> Ok, this was a serious brain cramp;
>>>
>>> The problem was obvious after I stepped through the code 4 more times.
>>> The "temp" directory in the compiler.tests folder was not created, 
>>> so the error was just that the temp file had an invalid path.
>>>
>>> On that note, Gordon, is this something you over looked in your setup?
>>> Or are developers supposed to create the temp directory manually?
>>>
>>> Mike
>>>
>>>
>>> Quoting Michael Schmalle <apache@teotigraphix.com>:
>>>
>>>> Hi,
>>>>
>>>> I'm having trouble getting the unit tests working for falcon.
>>>>
>>>> I have the whole framework built (ran mustella), built the falcon SDK.
>>>>
>>>> The problem I am facing is I get an IOException;
>>>>
>>>>     [junit] java.io.IOException: The system cannot find the path 
>>>> specified
>>>>     [junit] 	at java.io.WinNTFileSystem.createFileExclusively(Native
>>>> Method)
>>>>     [junit] 	at java.io.File.checkAndCreate(Unknown Source)
>>>>     [junit] 	at java.io.File.createTempFile(Unknown Source)
>>>>
>>>> Basically it seems like Eclipse is telling me it can't create the 
>>>> Temp MXML file. I am an administrator on Windows 7. I have never 
>>>> had this problem in Eclipse before.
>>>>
>>>> Does anybody have any idea what's going on?
>>>>
>>>> Did I see in some past post Cyrill having a setup list?
>>>>
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com 
>>>> http://blog.teotigraphix.com
>>>>
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com 
>>> http://blog.teotigraphix.com
>>>
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com 
>> http://blog.teotigraphix.com
>>
>
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Mime
View raw message